How can I use modified bessels function of second order for the following equation??

1 回表示 (過去 30 日間)
Sandhya Pai
Sandhya Pai 2016 年 5 月 15 日
回答済み: Maneet Kaur Bagga 2022 年 7 月 4 日
how can i write code the image problem in matlab to find the first and zeroth order modified bessels function of second kind. The equation is slightly different from the standard modified bessels equation given in mathworks. Kindly help me. Thanking you in advance.

回答 (1 件)

Maneet Kaur Bagga
Maneet Kaur Bagga 2022 年 7 月 4 日
Hi Sandhya Pai,
As per my understanding you want to write the zeroth and the first order modified bessels function of second kind. I have written my code below. I hope you find it useful.
gam=0.5772156649;
x = 5;
I0 = 1;
for k1 = 1:10
I0 = I0 + (((x.^2)./4).^k1)/(factorial(k1)^2);
end
I0m = besseli(0,x);
I0cmp = [I0m I0]
K0 = -(log(x/2)+gam)*I0;
frx = 0;
for k1 = 1:10
frx = frx + 1/k1;
K0 = K0 + (frx*(((x.^2)./4).^k1)/(factorial(k1)^2));
end
K0m = besselk(0,x);
K0cmp = [K0m K0]
NOTE: My notation corresponds to that in Abramowitz and Stegun, except for using x where they use z

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by