Please help with the trig integral

18 ビュー (過去 30 日間)
Jake
Jake 2013 年 4 月 25 日
I'm trying to take the integral of the following function.
arctan[sin(phi)/sqrt{(sin(x)^2-sin(phi)^2}]*sinx*dx
The interval is (degree10, degree15)
phi=9.4 degree
Here is what I have
fi=9.4*pi/180;
theta1=10*pi/180;
theta2=15*pi/180;
fun1=@(x)sqrt((sin(x)).^2-(sin(fi)).^2);
fun2=@(x)atan(sin(fi)./fun1).*sin(x);
q=integral(fun2,theta1,theta2);
Thank you very much!

回答 (1 件)

Mike Hosea
Mike Hosea 2013 年 4 月 25 日
On the line defining fun2, change "fun1" to "fun1(x)".

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by