Integral of bessel functions using int/quad
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bessel functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!