home::buildo...n::voigt_hwhm(3)

πŸ’œ voigt_hwhm β€” like, the libcerf manual, but make it make sense πŸ’œ

okay bestie, welcome to the libcerf manual, and today's main character is home::buildo...n::voigt_hwhm(3). yes the title is a whole mouthful, no we are not changing it, it's iconic in a chaotic way. πŸŽ€


✨ NAME ✨

voigt_hwhm β€” literally the half width at half maximum of Voigt's function. that's it. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so you pull this in:

#include <cerf.h>

and then you call it like this, bestie:

double voigt_hwhm ( double sigma, double gamma );

two doubles in, one double out. slay. ✨


🌸 DESCRIPTION 🌸

so voigt_hwhm returns the half width at half maximum of the function voigt. (yes. the name is the function. it's giving efficiency. πŸ‘‘)

and voigt itself returns Voigt's convolution, and the way that works is:

voigt(x,sigma,gamma) = integral G(t,sigma) L(x-t,gamma) dt

which is lowkey a mashup of two iconic functions β€” a Gaussian:

G(x,sigma) = 1/sqrt(2*pi)/|sigma| * exp(-x^2/2/sigma^2)

and a Lorentzian:

L(x,gamma) = |gamma| / pi / ( x^2 + gamma^2 ),

and important detail bestie: that integral extends from -infinity to +infinity. fr fr. don't forget the bounds, they're doing a lot of work. 😭


🌈 SEE ALSO 🌈


⭐ REFERENCE ⭐

Joachim Wuttke, Power series for the half width of the Voigt function β€” and the status is: in preparation; manuscript available upon request. so like, it exists, it's just not out yet. main character energy of a paper tbh. πŸ’€


πŸŽ€ AUTHOR πŸŽ€

Joachim Wuttke <j.wuttke@fz-juelich.de>, Forschungszentrum Juelich.

and this is the part where they say: Please report bugs to the author. so if something's cursed, that's the person to tell. be nice about it. πŸ™ˆ


πŸ’– COPYING πŸ’–

  • Copyright (c) 2018-25 Forschungszentrum Juelich GmbH
  • Software: MIT License.
  • This documentation: Creative Commons Attribution Share Alike.

that's your legal tea, bestie. respect it. πŸ“


okay real talk: this page is the width-of-the-Voigt-function page. use it when you need that half width at half maximum and you don't wanna do the math yourself. go off. πŸ”₯

and that's a wrap!! 🌈 sign-off time: this gorgeous mess is from perl v5.42.2, dated 2026-02-15, and it lives at home::buildo...n::voigt_hwhm(3). mwah. πŸ’œβœ¨

πŸ“¦ where this page comes from