How do I integrate a Fractional Trigonometric function in Matlab?

1 回表示 (過去 30 日間)
Sneha Thakur
Sneha Thakur 2018 年 10 月 29 日
編集済み: Walter Roberson 2020 年 10 月 21 日
Hi
I want to integrate
ki = k /((2*pi)^(alpha-1)*int(0-2*pi) cos(theta)^alpha*2^(beta-alpha)).
where k=1, alpha =1.35, beta = 2.09.
I have tried the following in matlab:
1.
fun1 = @(theta) (cos(theta)).^alpha*(2).^(beta-alpha);
q1 = integral(fun1,0,2*pi);
d1 = (2*pi)^(alpha-1);
ki = k/(d1*q1);
2.
int(((cos(x))^alpha*2^(beta-alpha),0, 2*pi)
But I am getting incorrect answers, i.e. they do not match with my hand calculations. Am I using the incorrect format in matlab. Or is anyone of this method correct and I might be going wrong with my hand calculations?
Is there something different to use for fractional trignometric integration matlab?
Any help would be appreciated.
Thanks
Sneha
  5 件のコメント
Sneha Thakur
Sneha Thakur 2018 年 10 月 31 日
Thank You Torsten.
It has solved my problem to an extent.
Thanks
Sneha
Ahmed Essam
Ahmed Essam 2020 年 10 月 21 日
I want to integrate the function attached in the picture please

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

回答 (0 件)

カテゴリ

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