Description

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

Package Information

Version1.4.1 (2015-Aug-13)
Homepage http://github.com/9il/libcerf
Repository https://github.com/DlangScience/libcerf
LicenseSubject to the terms of the MIT license, as written in the included LICENSE.txt file.
CopyrightCopyright © 2012 Massachusetts Institute of Technology, © 2013 Forschungszentrum Jülich GmbH, © 2014 Ilya Yaroshenko
AuthorsSteven G. Johnson, Joachim Wuttke, Ilya Yaroshenko
Registered byIlya Yaroshenko
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

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

Available versions

1.4.1 1.4.0 ~master ~John-Colvin-patch-1