The Voigt and complex error function: Humlíček's rational approximation generalized
Abstract
Accurate yet efficient computation of the Voigt and complex error function is a challenge since decades in astrophysics and other areas of physics. Rational approximations have attracted considerable attention and are used in many codes, often in combination with other techniques. The 12term code `CPF12' of Humlíček achieves an accuracy of five to six significant digits throughout the entire complex plane. Here we generalize this algorithm to a larger (even) number of terms. The n = 16 approximation has a relative accuracy better than 10^{5} for almost the entire complex plane except for very small imaginary values of the argument even without the correction term required for the CPF12 algorithm. With 20 terms the accuracy is better than 10^{6}. In addition to the accuracy assessment we discuss methods for optimization and propose a combination of the 16term approximation with the asymptotic approximation of the w4 code of Humlíček for high efficiency.
 Publication:

Monthly Notices of the Royal Astronomical Society
 Pub Date:
 September 2018
 DOI:
 10.1093/mnras/sty1680
 arXiv:
 arXiv:1806.11560
 Bibcode:
 2018MNRAS.479.3068S
 Keywords:

 line: profiles;
 methods: numerical;
 techniques: spectroscopic;
 Physics  Computational Physics;
 Astrophysics  Instrumentation and Methods for Astrophysics
 EPrint:
 9 pages, 5 figures