Please help me code this

1 次查看(过去 30 天)
  1 个评论
John D'Errico
John D'Errico 2022-7-11
Stop posting your homework problems You have gotten two of them solved. Enough. Answers is not a homework solving service.

请先登录,再进行评论。

采纳的回答

Brendan Jozwiak
Brendan Jozwiak 2022-7-11
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

更多回答(1 个)

Torsten
Torsten 2022-7-11
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 = 

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by