Expressing the double integral on matlab

Hi everyone,
I' m having a big assignment in matlab
However I don't know how to express double intergral having domain.
For example : Find the surface area of the sphere x^2+y^2+z^2 =9
And my solution is :
z = f(x,y)= square root of 9 - x^2 - y^2
therefore,
f '(x,y)x = -x/squareroot(9-x^2-y^2)
f '(x,y)y = -y/squareroot(9-x^2-y^2)
And we have: (applying the formula of double integral : double integral(squareroot(1+[f '(x,y)x]^2 +[f ' (x,y)y]^2) dA)
S = 2 * double integral(squareroot(1+(-x/squareroot(9-x^2-y^2))^2+(-y/squareroot(9-x^2-y^2))^2) dx dy) (1)
Additionally, x = rcost, y = rsint => D = { 0 <= r <= 3; 0 <= t <= 2pi } (2)
Then replace (2) into (1) and get answer
How can I code double integral with matlab such as example above ??

2 件のコメント

madhan ravi
madhan ravi 2019 年 5 月 15 日
編集済み: madhan ravi 2019 年 5 月 15 日
[comment moved to answer]
Cuong Ho Chi
Cuong Ho Chi 2019 年 5 月 15 日
Thanks for your support Mr.Madhan

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2019 年 5 月 15 日

回答済み:

2019 年 5 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by