how to define a double integral with symbolic upper limits

11 Ansichten (letzte 30 Tage)
Yufei Cao
Yufei Cao am 5 Okt. 2018
Kommentiert: Yufei Cao am 5 Okt. 2018
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.

Antworten (1)

Walter Roberson
Walter Roberson am 5 Okt. 2018
syms x y h
f(h) = int( int(x*y, x, 0, 1), y, 0, h)
  3 Kommentare
Walter Roberson
Walter Roberson am 5 Okt. 2018
Bearbeitet: Walter Roberson am 5 Okt. 2018
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)
Yufei Cao
Yufei Cao am 5 Okt. 2018
Dear Walter,
Thanks a lot.
I found the first way does not work, see the pic.
But the second one works very well. Thank you very much.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by