Skip to content

Complex error functions, along with Dawson, Faddeeva, and Voigt functions.

License

Notifications You must be signed in to change notification settings

DlangScience/libcerf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ab5cd65 · Oct 28, 2017

History

49 Commits
Aug 13, 2015
Jun 22, 2015
Jun 5, 2017
Jun 5, 2017
Oct 28, 2017
Sep 21, 2014
Aug 13, 2015
Aug 12, 2015

Repository files navigation

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

About

Complex error functions, along with Dawson, Faddeeva, and Voigt functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages