View on GitHub

DlangScience

Scientific tools and libraries for the D programming language

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:

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