Complex error functions, along with Dawson, Faddeeva, and Voigt functions.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples/erfi
site
source/libcerf
.gitignore
.travis.yml
LICENSE
README.md
dub.json

README.md

Build Status libcerf

Self-contained numeric library that provides an efficient and accurate implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions.

Functions:

  • erf (complex)
  • erfc (complex)
  • erfcx (both)
  • erfi (both)
  • dawson (both)
  • voigt
  • fadeeva (complex)
  • fadeevaIm (double)

Example:

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);

Links