pub fn wofz(z: Complex<f64>) -> Complex<f64>Expand description
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.