Skip to content
Snippets Groups Projects

Bugfix/fix asymptotic bessel

Merged Eskil Vik requested to merge bugfix/fix-asymptotic-bessel into master
All threads resolved!

Makes the following corrections to multiprecision bessel function implementation:

  • Include second series scaling with exp(-z) in asymptotic calculation of I
  • Correct normalization of besinorm
  • Make precision-dependent condition for selecting Taylor series or asymptotic approximation for I and K

The first change is the only one to affect the rest of the IW2D-scripts in their current form, as the normalized K and I are not used, and precision is hard coded. The first change is particularly important for small Re(z). All changes are based on the work of Amos: AMOS, D. E, Computation of Bessel functions of complex argument. SAND83-0086, Sandia National Laboratories, Albuquerque, N.M. (May 1983).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Excellent work! :thumbsup:

    Please have a look at the (mostly minor) comments.

  • Eskil Vik added 1 commit

    added 1 commit

    Compare with previous version

  • Author Developer

    I have noted your comment about imagj and addressed the other two. I left the full reference to Amos as a comment, as I did not find a place in readme.md where I felt it was natural to cite it (and because it is a quite minor point that most users do not need to know).

  • Nicolas Mounet mentioned in issue #2

    mentioned in issue #2

  • I agree on all grounds. thanks!

  • Nicolas Mounet resolved all threads

    resolved all threads

  • Nicolas Mounet approved this merge request

    approved this merge request

  • Nicolas Mounet mentioned in commit dbd892f6

    mentioned in commit dbd892f6

  • Please register or sign in to reply
    Loading