Self-contained numeric library that provides an efficient and accurate implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions.
- erf (complex)
- erfc (complex)
- erfcx (both)
- erfi (both)
- dawson (both)
- voigt
- fadeeva (complex)
- fadeevaIm (double)
import std.complex, std.math;
import libcerf;
auto c = erfi(complex(1.0, 0.0));
auto f = erfi(1.0);
assert(fabs((c.re - f)/f) < 1e-13);
- D source code on GitHub
- Original Faddeeva Package
- Original C source code