Symbolic Toolbox: integration
古いコメントを表示
>> int('cos(x^2)^2')
Warning: Explicit integral could not be found.
ans =
int(cos(x^2)^2, x)
>> int('cos(2*x^2)')
ans =
(pi^(1/2)*fresnelC((2*x)/pi^(1/2)))/2
But there is a formula cos(2y)=2cos(y)^2)-1 and in first case MATLAB can't solve..
May be MuPAD forced to solve?
9 件のコメント
Walter Roberson
2011 年 12 月 12 日
It works in Maple.
Walter Roberson
2011 年 12 月 13 日
You could _try_
int(simple('cos(x^2)^2'),'x')
Andrei Bobrov
2011 年 12 月 13 日
Hi Walter! Small typo:
int(simplify('cos(x^2)^2'),'x')
Walter Roberson
2011 年 12 月 13 日
No, simple() is correct rather than simplify() . simple() goes through a variety of conversions to find the "best" one, telling you along the way what it is doing.
Andrei Bobrov
2011 年 12 月 13 日
in "my" MATLAB with Maple Toolbox
http://imageshack.us/photo/my-images/838/symint.png/
Andrei Bobrov
2011 年 12 月 13 日
in "my" MATLAB with MuPAD (I use MATLAB 7.10)
http://imageshack.us/photo/my-images/542/symint2.png/
Walter Roberson
2011 年 12 月 13 日
int(simple(sym('cos(x^2)^2')),'x')
Andrei Bobrov
2011 年 12 月 13 日
I'm agree , Walter!
(Maple Toolbox)
http://imageshack.us/photo/my-images/843/symint3.png/
Andrei Bobrov
2011 年 12 月 13 日
Last comment :)
http://imageshack.us/photo/my-images/402/symint4.png/
(for Maple Toolbox)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Common Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!