How to make integral of Hankel function at infinite?

조회 수: 6 (최근 30일)
tran
tran 2012년 9월 24일
Hi guys,
I have a question on numerical integral of Hankel functions, need help from all you. Thank you in advance
How do we treat with integral of a function contains Hankel function from 0 to infinite? for example, function=x.besselh(1,0,x)?
statement "quad" not allow at infinite.

답변 (2개)

Mike Hosea
Mike Hosea 2012년 9월 25일
Use INTEGRAL. If you don't have R2012a or later, use QUADGK. If you don't have QUADGK, it's time to upgrade.
  댓글 수: 2
tran
tran 2012년 9월 26일
Quadgk(f,0,inf) with f=@(x) x.*bessel(0,1,x) gives us warning:
Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 1.1e+045. The integral may not exist, or it may be difficult to approximate numerically. Increase MaxIntervalCount to 738 to enable QUADGK to continue for another iteration. > In quadgk>vadapt at 317 In quadgk at 216
ans =
3.5928e+044 -1.0851e+045i
How can we trust this result?
Mike Hosea
Mike Hosea 2012년 9월 26일
I didn't even think about the function you were integrating. I assumed it was integrable. I'm not saying QUADGK can handle any integrable problem, because there are some that it can't, but if you're going to try to integrate a function that oscillates with increasing amplitude as x increases, I don't think it matters what method you use.

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


Matt Fig
Matt Fig 2012년 9월 25일
This one is easy. Because:
besselh(1,0,x) % Zero for all x.
we know the integral from 0 to inf is 0.
  댓글 수: 8
tran
tran 2012년 9월 27일
Hi Matt. Thank you very much for your advice. Discussion is a very good way to gain our understanding, right? Yes, indeed s_omething is better than nothing_ . I like to hear advice from all you
Walter Roberson
Walter Roberson 2012년 9월 27일
Looks to me like the two component parts of besselh both oscillate infinitely often towards x=infinity, and it appears that although the oscillations decay that they do so much more slowly than x increases; this leads to the indeterminate (infinity times 0) + I * (infinity times 0) as the limit at infinity, which is undefined.

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by