MATLAB CODE of an equation including Bessel's function

조회 수: 9 (최근 30일)
Md Jahid Hasan Sagor
Md Jahid Hasan Sagor 2022년 8월 17일
편집: Torsten 2022년 8월 18일
I am stuck coding the below equation. Would you please give me some guidance? I know f and beta. I need to know gamma(f,beta). Here, alpha are the zeros of the bessel function J1(x). How can I approximate the solution as it goes to infinity.
Please, would anyone kindly help me, how can I approach it?

채택된 답변

Torsten
Torsten 2022년 8월 17일
편집: Torsten 2022년 8월 17일
  댓글 수: 3
Torsten
Torsten 2022년 8월 18일
편집: Torsten 2022년 8월 18일
In my case, alpha_k are the zeros of J1(x). I understand that I need to use your function J0ROOTS to find out zeros of J1(x). My question is, will the no. Zeros be equal to the no. of Summation? For example: if I find out first 10 zeros, should I sum up k=1 to 10?
You have an infinite sum. The terms of this sum can be evaluated up to the value of k for which you have alpha_k, the k-th zero of J1(x). So you can only sum up to the k which you choose for the number of zeros supplied for J1.
You used sum(function,2) in the for loop. Does it help me to calculate K=1 to inf?
In the code, the sum over the columns of the matrix
2*besselj(0,a_k.*r)./(a_k.^2.*besselj(1,a_k)).*exp(-a_k.*t(i))
gives L(r,t(i)) , summed up from k=1 to k = n, not k = Inf, as a column vector with r = (0:0.01:1).'
Choose n big enough such that the difference between the finite and infinite sum becomes small enough for your purpose. Practically, test what comes out if you vary n.
Md Jahid Hasan Sagor
Md Jahid Hasan Sagor 2022년 8월 18일
I got it. Thank you so much for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bessel functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by