arXiv preprint ·

A branchless single-precision Voigt approximation for spectral synthesis

Richard Hoppe

Published
Source
arXiv preprint, posted before peer review
Original
Read it at arXiv
Topics
Solar & Stellar AstrophysicsInstrumentation & Methods for AstrophysicsComputational Physics

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.

The authors’ abstract, as arXiv lists it. arXiv’s listings, abstracts included, are free for anyone to reuse.

Read it on ReadSearch

Each opens after you create an account, and brings you back to this paper.

Already a reader? Sign in

All new papers in Solar & Stellar Astrophysics

Get the few papers worth your time in Solar & Stellar Astrophysics every morning.

ReadSearch reads the new papers in your field each day and brings you the few worth reading, each with its key finding in a sentence.

Papers belong to their authors and publishers; every page here links to the original. All research topics