Computing Double integrals with ymax

F = @(x,y) y*sqrt(x.^2 - y.^2);
ymax = @(x)x;
q = integral2(F,1,2,0,ymax)
I need help with computing this double integral. my bounds for y are 0 and x, but it won't work even when I make ymax a function handle.

 采纳的回答

F = @(x,y) y.*sqrt(x.^2 - y.^2);
instead of
F = @(x,y) y*sqrt(x.^2 - y.^2);

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Profile and Improve Performance 的更多信息

产品

版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by