arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.07820math.NAcs.NAmath.CA
收藏

一种用于快速数值计算实阶次和实参数贝塞尔函数的算法

An algorithm for the rapid numerical evaluation of Bessel functions of real orders and arguments

University of California, Davis(加州大学戴维斯分校)

James Bremer

AI总结:

本文提出一种快速计算实阶次和实参数贝塞尔函数的算法,通过预计算对数并利用分段双变量切比雪夫展开,提高了计算效率并避免了数值溢出问题。

摘要:

我们描述了一种用于快速数值计算第一和第二类非负实阶次和正实参数贝塞尔函数的方法。我们的算法利用了一个众所周知的观察:虽然贝塞尔函数本身通过分段多项式展开来表示是昂贵的,但某些贝塞尔方程解的对数不是。我们通过数值预计算精心选择的贝塞尔函数的对数,并用分段双变量切比雪夫展开来表示它们。我们的方案能够评估阶次在0到1,000,000,000之间的贝塞尔函数,其在正实参数范围内与现有方法竞争,并具有几个优势。首先,我们的方法非常通用,可以应用于许多其他满足二阶常微分方程的特殊函数。其次,通过计算贝塞尔函数的对数而不是本身,我们避免了许多由于数值溢出和下溢问题产生的麻烦。第三,在振荡区域,我们的算法计算了贝塞尔微分方程及其导数的非振荡相位函数的值。这些量对于计算贝塞尔函数的零点以及快速应用傅里叶-贝塞尔变换都是有用的。广泛数值实验的结果展示了我们算法的有效性。一个包含我们评估贝塞尔函数的代码以及所有描述在此处的数值实验的FORTRAN包已公开提供。

英文摘要:

We describe a method for the rapid numerical evaluation of the Bessel functions of the first and second kinds of nonnegative real orders and positive arguments. Our algorithm makes use of the well-known observation that although the Bessel functions themselves are expensive to represent via piecewise polynomial expansions, the logarithms of certain solutions of Bessel's equation are not. We exploit this observation by numerically precomputing the logarithms of carefully chosen Bessel functions and representing them with piecewise bivariate Chebyshev expansions. Our scheme is able to evaluate Bessel functions of orders between $0$ and $1\sep,000\sep,000\sep,000$ at essentially any positive real argument. In that regime, it is competitive with existing methods for the rapid evaluation of Bessel functions and has several advantages over them. First, our approach is quite general and can be readily applied to many other special functions which satisfy second order ordinary differential equations. Second, by calculating the logarithms of the Bessel functions rather than the Bessel functions themselves, we avoid many issues which arise from numerical overflow and underflow. Third, in the oscillatory regime, our algorithm calculates the values of a nonoscillatory phase function for Bessel's differential equation and its derivative. These quantities are useful for computing the zeros of Bessel functions, as well as for rapidly applying the Fourier-Bessel transform. The results of extensive numerical experiments demonstrating the efficacy of our algorithm are presented. A Fortran package which includes our code for evaluating the Bessel functions as well as our code for all of the numerical experiments described here is publically available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑