Efficient numerical algorithms for multi-precision and multi-accuracy calculation of the error functions and Dawson integral with complex arguments

Mofreh R. Zaghloul
DOI: https://doi.org/10.1007/s11075-023-01727-2
IF: 2.37
2024-02-20
Numerical Algorithms
Abstract:We present efficient algorithms for multi-precision and multi-accuracy calculation of error functions and the Dawson integral, all with complex arguments. These algorithms achieve exceptional accuracies, ranging from 26 significant digits (SD) up to 30 SD depending on the function. In addition to the Faddeyeva or Faddeeva function, or the scaled complementary error function, , the list of functions considered include the error function, erfz$${\text{erf}}\left(z\right)$$; the complementary error function, erfcz$${\text{erfc}}\left(z\right)$$; the imaginary error function, erfi(z)$${\text{erfi}}(z)$$; and the Dawson integral Daw(z)$${\text{Daw}}(z)$$. These algorithms are integrated into a modern Fortran module confirming the claimed accuracies and superior efficiency compared to other competitive codes in the literature. Additionally, we highlight an observation regarding the built-in “Erfc_Scaled(x)$${\text{Erfc}}\_{\text{Scaled}}(x)$$” function included in a widely used Fortran compiler, which exhibits a significant decline in accuracy when employed in quadruple-precision arithmetic.
mathematics, applied
What problem does this paper attempt to address?