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

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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