Skip to main content

Module faddeeva

Module faddeeva 

Source
Expand description

The Faddeeva function w(z) = e^{−z²} erfc(−iz) (SciPy’s wofz) and the Voigt profile, the convolution of a Gaussian and a Lorentzian (SciPy’s voigt_profile).

See the book entry Faddeeva, Struve, Kelvin and Hankel functions.

Functions§

voigt_profile
The Voigt profile (SciPy’s voigt_profile): the density of the sum of a normal variable with standard deviation σ and a Cauchy variable with half-width γ, V(x) = Re w((x + iγ)/(σ√2)) / (σ√(2π)). With σ = 0 it is the Lorentzian, with γ = 0 the Gaussian.
wofz
The Faddeeva function w(z) = e^{−z²} erfc(−iz) (SciPy’s wofz). On the real axis it is e^{−x²} + (2i/√π) D(x) with Dawson’s integral D; just above it (0 < y ≤ ½, |x| < 9) the Taylor series in y about that, which keeps the small real part accurate; elsewhere in the upper half plane, Weideman’s rational approximation with 40 terms for |z| < 6 and Laplace’s continued fraction beyond; in the lower half plane, the reflection w(z) = 2 e^{−z²} − w(−z). Relative accuracy about 10⁻¹⁴ in the upper half plane, for the real and imaginary parts separately.