Please help me code this

1 Ansicht (letzte 30 Tage)
Brendan Jozwiak
Brendan Jozwiak am 11 Jul. 2022
Kommentiert: John D'Errico am 11 Jul. 2022
  1 Kommentar
John D'Errico
John D'Errico am 11 Jul. 2022
Stop posting your homework problems You have gotten two of them solved. Enough. Answers is not a homework solving service.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Brendan Jozwiak
Brendan Jozwiak am 11 Jul. 2022
func=@(x,y) sqrt(x.^2 + y.^2);
ymax=@(x) sqrt(2.*x - x.^2);
result=integral2(func,0,2,0,ymax);
disp("Result=");
Result=
disp(result);
1.7778

Weitere Antworten (1)

Torsten
Torsten am 11 Jul. 2022
c = integral(@(x)integral(@(y)sqrt(x.^2+y.^2),0,sqrt(2*x-x.^2)),0,2,'ArrayValued',true)
c = 1.7778
syms x y
c = int(int(sqrt(x^2+y^2),y,0,sqrt(2*x-x^2)),x,0,2)
c = 

Kategorien

Mehr zu Mathematics 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