採用された回答

madhan ravi
madhan ravi 2018 年 12 月 14 日
編集済み: madhan ravi 2018 年 12 月 14 日

0 投票

If you want specific help post what you tried:
fun = @(theta).... your function without integral
integral(fun,0,pi/2)

6 件のコメント

clear marklina
clear marklina 2018 年 12 月 14 日
thanks mr madhan for your answer and how can i plot it ?
madhan ravi
madhan ravi 2018 年 12 月 14 日
madhan ravi
madhan ravi 2018 年 12 月 14 日
Clear Marklina's answer moved here for consistency:
i'm trying this,but it doesn't give the result :
f=@(theta)((cos(pi/2*cos(theta))^(2))/sin(theta));
integral(f,0,pi/2)
madhan ravi
madhan ravi 2018 年 12 月 14 日
Try this:
f=@(theta)((cos((pi./2).*cos(theta)).^(2))./sin(theta));
integral(f,0,pi/2)
clear marklina
clear marklina 2018 年 12 月 14 日
編集済み: clear marklina 2018 年 12 月 14 日
thank you mr madhan, it works and give sto me ans=0.6094, , can you help me how can i plot this integral !
madhan ravi
madhan ravi 2018 年 12 月 14 日
use cumtrapz() but I did all the experiments I could but breaking this problem was hectic for me...

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by