Problem Integrating sin(2*x)
5 ビュー (過去 30 日間)
古いコメントを表示
>> syms x >> f=sin(2*x)
f =
sin(2*x)
>> int(f)
ans =
sin(x)^2
>>
I am sure it is wrong because it should be -1/2+sin(x)^2
0 件のコメント
採用された回答
Paul
2014 年 3 月 5 日
The integral is:
sin(x)^2 + C
but Matlab just doesn't show the constant. How do you get the -1/2? Because if you differentiate the integral (sin(x)^2 + C) you get:
2*sin(x)*cos(x) = sin(2*x)
And the constant differentiated gives 0 since it doesnt depend on x.
4 件のコメント
Gustavo Leal
2017 年 10 月 9 日
sin(pi)^2 != -cos (2pi)/2 ,for example, something its wrong with this function at MATLab
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!