When I type in the following code:
syms x y;
f=(2+cos(x))*cos(x)+(2+cos(y))*(sin(x))+sin(x);
fx=diff(f,x);
fy=diff(f,y);
s=int(int(sqrt(fx^2+fy^2+1),x,0,2*pi),y,0,2*pi)
the console returns this:
int(int(((cos(x) - cos(x)*sin(x) + cos(x)*(cos(y) + 2) - sin(x)*(cos(x) + 2))^2 + sin(x)^2*sin(y)^2 + 1)^(1/2), x, 0, 2*pi), y, 0, 2*pi)
instead of the actual output.

1 件のコメント

Walter Roberson
Walter Roberson 2016 年 5 月 3 日
Is that a surface area computation? Most surface areas do not have closed forms. Sometimes you get lucky and there is an expression using Elliptic Integrals.

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

 採用された回答

John D'Errico
John D'Errico 2016 年 5 月 3 日

0 投票

It could not find an analytical solution. What do you want it to return in that case?
You can get a numerical solution.
vpa(s)
ans =
107.02082623948063194568017852069

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by