A branchless single-precision Voigt approximation for spectral synthesis
Richard Hoppe
Key points
From the paper's conclusion- We construct QLG, a family of branchless, single-precision approximations, separable in the damping parameter $a$.
Abstract
The Voigt function is evaluated repeatedly in spectral synthesis, and several widely used implementations carry an absolute error floor. We construct QLG, a family of branchless, single-precision approximations, separable in the damping parameter $a$. QLG is named for its three ingredients: Lorentzian and Gaussian generators $L$ and $G$, and an envelope $q$ that multiplies every fitted correction and vanishes at both endpoints. The leading Lorentzian wing amplitude is fixed analytically. Three members reach observed maximum full-profile relative errors of $6.5\times10^{-3}$, $9.2\times10^{-4}$, and $7\times10^{-5}$ over $a\in[10^{-9},10^{9}]$ and $|v|\le10^{5}$. Extended-domain and randomized checks support these error levels. For the tested SIU, MOOG, and Humlicek w4 implementations, the relative error instead approaches 100% towards small values of the damping parameter. We compare synthesis-weighted costs on an Apple M1 and an AMD EPYC 9554 using gfortran 15, and propagate errors through solar-dwarf, red-supergiant, and M-dwarf syntheses. The least expensive member costs 0.98-1.05 times as much as the tabulated Synspec kernel on the M1 and 1.11-1.20 times as much on the EPYC, with a maximum flux error smaller by a factor of 3.6. The intermediate member costs less than every tested arithmetic kernel and holds the flux error below $10^{-3}$. The most accurate member costs 1.6-3.0 times less than w4 and gives 3.4-5.0 times smaller maximum flux errors in the tested syntheses.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Mixture Representations and Inference for the Voigt ProfileStatistical Analysis and Data Mining: An ASA Data Science Journal · 2026
- Global approximations to the error function of real argument for vectorized computation.The Journal of chemical physics · 2026
- Fast and Accurate Boys Function Evaluation Using Nonuniform Gridded Taylor ExpansionsarXiv · 2026
- Empirical Bolometric Correction and Zero-point Constants of Visual Magnitudes from High-resolution SpectraThe Astronomical Journal · 2025
- Ziv: A Language for Correctly Rounded Math LibrariesarXiv · 2026
- The involute function and its inverse in IEEE 754 double precision: measured and proved accuracy, and its effect on gear inspectionarXiv · 2026