Evaluating Symbolic, Definite Integral with Bessel's Function

Hello,
I need to evaluate the following definite, symbolic integral with 0th order bessel function inside.
Where J0 is the 0th order bessel function and also a function of r and A(i) which is an array of integers. I need to evaluate the integral for each value of A(i) from i=1:5. Here is what I have so far:
syms r
for i=1:5
An(i)= int(20*besselj(0,A(i)*r)*r,0,3.1);
end
Matlab is able to evaluate this, but I am suspicious of the results as they don't make sense in the context of my problem. Does this seem like the correct approach?

댓글 수: 1

syms A U
assume(U>=0)
syms r
An = int(20*besselj(0,A*r)*r,0,U);
An
An = 
That looks appropriate to me.

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

 채택된 답변

Torsten
Torsten 2022년 3월 26일
You might want to compare with the numerical solution:
An = integral(@(r)20*besselj(0,A.*r).*r,0,3.1,'ArrayValued',true)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Bessel functions에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 3월 26일

답변:

2022년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by