how to define a double integral with symbolic upper limits
8 次查看(过去 30 天)
显示 更早的评论
I want to define a double integral, like this
f(h) = \int_0^h (\int_0^1 xy dx) dy,
where h is a variable.
I try to use command twice: int(int(~,~,~),~,~), but it does not work.
0 个评论
回答(1 个)
Walter Roberson
2018-10-5
syms x y h
f(h) = int( int(x*y, x, 0, 1), y, 0, h)
3 个评论
Walter Roberson
2018-10-5
编辑:Walter Roberson
2018-10-5
matlabFunction(int(int((x.^2 + y.^2)^(1/3), x, 0, 1),0, h),h)
or
f(h) = vpaintegral( vpaintegral(x*y, x, 0, 1), y, 0, h)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!