Please help me code this

조회 수: 1 (최근 30일)
Brendan Jozwiak
Brendan Jozwiak 2022년 7월 11일
댓글: John D'Errico 2022년 7월 11일
  댓글 수: 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에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by