Compute erfcx(x) = exp(x^2) erfc(x) function, for real x, using a novel algorithm that is much faster than DERFC of SLATEC. This function is used in the computation of Faddeeva, Dawson, and other complex error functions.
Computate Dawson, Voigt, and several error functions, based on erfcx, im_w_of_x, w_of_z as implemented in separate files.
Compute complex error functions, based on a new implementation of Faddeeva's w_of_z. Also provide Dawson and Voigt functions.
Internal test utilities. Use flags -unittest -debug=libcerf to receive debug info.
Computation of Faddeeva's complex scaled error function, w(z) = exp(-z^2) * erfc(-i*z), nameless function (7.1.3) of Abramowitz&Stegun (1964), also known as the plasma dispersion function.
Alias for libcerf.err_fcts.cdawson and libcerf.err_fcts.dawson.
Alias for libcerf.err_fcts.cerf.
Alias for libcerf.err_fcts.cerfc.
Alias for libcerf.err_fcts.cerfcx and libcerf.erfcx_.erfcx.
Alias for libcerf.err_fcts.cerfi and libcerf.err_fcts.erfi.
Alias for libcerf.w_of_z.w_of_z.
Alias for libcerf.im_w_of_x.im_w_of_x.
Alias for libcerf.err_fcts.voigt
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);
Date: September 21, 2014
© 2012 Massachusetts Institute of Technology, © 2013 Forschungszentrum Jülich GmbH, © 2014 Ilya Yaroshenko
1.4
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Package module with aliases.