Integral of bessel functions using int/quad

조회 수: 2 (최근 30일)
Adrien San
Adrien San 2016년 2월 19일
댓글: Torsten 2016년 2월 19일
Hi all,
I'm trying to compute an integral with the function int but it seems like Matlab cannot compute it and does not return a numerical value. Here is my integral which should be close to 1 (probability density).
f = (1/V_A) * r * exp(-(r^2+D^2)/(2*V_A)) * besselj(0,1i*lambda*r/sqrt(V_A));
v = int(f_1,0,1000);
Then, I tried to compute it using the quad/quadl function but it returns :
f_1=@(r) (1/V_A)* r.* exp(-(r.^2+D^2)/(2*V_A)).*besselj(0,1i*lambda*r./sqrt(V_A));
var_th = quadl(f_1,0,1000);
Warning: Infinite or Not-a-Number function
value encountered.
> In quadl at 108
In Unti at 55
Warning: Infinite or Not-a-Number function
value encountered.
> In quadl at 108
In Unti at 55
Do you have any solutions to compute such integrals ?
Thanks,
A
  댓글 수: 1
Torsten
Torsten 2016년 2월 19일
Did you set V_A to something different from null ?
Best wishes
Torsten.

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

답변 (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