Warning: Explicit integral could not be found.

Hi
I'm trying to solve this integral but it gives me this error: Warning: Explicit integral could not be found.
syms a b
Q = (1/(2*pi*lams)) * exp( - (a^2 + b^2)/(2*lams));
q = int(int(Q,b,0,sqrt((lams^2) - (a^2))),a,0,lams);

 採用された回答

Roger Stafford
Roger Stafford 2013 年 6 月 26 日

0 投票

Apparently 'int' is not quite smart enough to make a change of variables. If you change the variables to polar coordinates:
a = r*cos(theta)
b = r*sin(theta)
the double integral is easily found and has the value (if my calculus isn't too rusty)
q = 1/4*(1-exp(-lams/2))
(The area covered by the integration in the a,b coordinates is a quarter circle.)

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 6 月 26 日

0 投票

It does not have any obvious closed form integral. Do you have reason to expect that there is a closed form for it?

3 件のコメント

Roger Stafford
Roger Stafford 2013 年 6 月 26 日
But it does, Walter, as I have just pointed out, but 'int' is not able to find it.
Walter Roberson
Walter Roberson 2013 年 6 月 26 日
My answer was being prepared before yours was posted ;-)
Roger Stafford
Roger Stafford 2013 年 6 月 26 日
I'm sorry. I should have made allowance for that before complaining.

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

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by