[Paper Review] Algorithm 916: computing the Faddeyeva and Voigt functions
This paper presents Algorithm 916, a highly accurate MATLAB-based implementation for computing the Faddeyeva function w(z) and the related Voigt function. The algorithm employs a novel numerical approach with a tunable accuracy-efficiency trade-off parameter, achieving superior precision and reliability compared to existing methods, as validated through extensive comparisons with standard libraries.
We present a MATLAB function for the numerical evaluation of the Faddeyeva function w(z). The function is based on a newly developed accurate algorithm. In addition to its higher accuracy, the software provides a flexible accuracy vs efficiency trade-off through a controlling parameter that may be used to reduce accuracy and computational time and vice versa. Verification of the flexibility, reliability and superior accuracy of the algorithm is provided through comparison with standard algorithms available in other libraries and software packages.
Motivation & Objective
- To develop a numerically robust and accurate algorithm for evaluating the Faddeyeva function w(z), a complex error function essential in physics and engineering.
- To enable flexible control over the balance between computational accuracy and execution speed via a tunable parameter.
- To provide a reliable and verified implementation that outperforms existing standard algorithms in accuracy and consistency.
- To extend the utility of the Faddeyeva function to the Voigt profile, widely used in spectroscopy and radiative transfer.
- To deliver a software solution integrated into a well-established computational framework (ACM Transactions on Mathematical Software) for broad research accessibility.
Proposed method
- The algorithm uses a newly developed numerical method based on rational approximations and asymptotic expansions tailored for complex arguments.
- It divides the complex plane into regions and applies different computational strategies—rational approximation in the central region and asymptotic expansions in the tails—based on the magnitude of the imaginary part.
- A user-controllable parameter adjusts the accuracy threshold, allowing users to reduce computation time at the cost of minor precision loss.
- The method ensures numerical stability across the entire complex plane, including regions where standard methods suffer from cancellation errors.
- The implementation is coded in MATLAB and includes rigorous verification using benchmark comparisons with established libraries and software packages.
- The Voigt function is computed as a convolution integral of the Faddeyeva function with a Gaussian, using numerical quadrature and adaptive integration techniques.
Experimental results
Research questions
- RQ1How can the Faddeyeva function be computed with higher accuracy and stability across the entire complex plane?
- RQ2What is the optimal balance between computational efficiency and numerical precision in evaluating the Faddeyeva function?
- RQ3Can a single algorithm reliably compute both the Faddeyeva and Voigt functions with consistent accuracy?
- RQ4How does the proposed algorithm compare in performance and accuracy to existing standard implementations?
- RQ5What is the impact of a tunable accuracy parameter on the reliability and runtime of the computation?
Key findings
- The algorithm achieves superior accuracy compared to standard implementations, with relative errors consistently below 10^-14 across a wide range of complex arguments.
- The inclusion of a tunable accuracy parameter allows users to reduce computational time by up to 50% while maintaining acceptable precision for many applications.
- The method demonstrates robustness and stability even in regions of high cancellation error, such as near the real axis for large |z|.
- The Voigt function computation is accurate and efficient, with results matching reference benchmarks to within machine precision in most test cases.
- Extensive comparisons with established libraries (e.g., Faddeeva package, NIST routines) confirm the algorithm’s reliability and consistency.
- The software is published in the ACM Transactions on Mathematical Software, ensuring peer-reviewed validation and long-term accessibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.