A fast algorithm for computing the Boys function
Gregory Beylkin, Sandeep Sharma
TL;DR
The paper tackles the efficient evaluation of the Boys function $F(n,z)$ for real and complex $z$, a key ingredient in Gaussian integral computations. It introduces two complementary strategies based on nonlinear exponential approximations: (i) a quadrature-based approach for $F(0,z)$ with complex arguments and $\mathcal{R}e(z)\ge0$, and (ii) a near-optimal exponential approximation for $g_n(s)=(1-s)^{n-1/2}$ to compute $F(n_{\max},z)$ (with recurrences to obtain all lower $n$) for both real and complex $z$, along with explicit error bounds and offline coefficient computation. The methods yield tight accuracy with manageable computational costs and are amenable to parallelization, demonstrated with Fortran 90 implementations and supplementary material for practical use. These contributions offer a robust, scalable framework for computing the Boys function in complex-argument scenarios, broadening its applicability in quantum chemistry and related scattering problems.
Abstract
We present a new fast algorithm for computing the Boys function using a nonlinear approximation of the integrand via exponentials. The resulting algorithms evaluate the Boys function with real and complex valued arguments and are competitive with previously developed algorithms for the same purpose.
