Meta.Numerics Library
Erf Method (x)
Meta.NumericsMeta.Numerics.FunctionsAdvancedMathErf(Double)
Computes the error function.
Declaration Syntax
C#Visual BasicVisual C++F#
public static double Erf(
	double x
)
Public Shared Function Erf ( _
	x As Double _
) As Double
public:
static double Erf(
	double x
)
static member Erf : 
        x:float -> float 
Parameters
x (Double)
The argument.
Return Value
The value of erf(x).
Remarks

The error can be defined via a Gaussian integral.

The area under a bell curve (NormalDistribution) within ∓z standard deviations of the mean is given by erf(z/√2).

For large values of x, erf(x) ≈ 1 to within floating-point accuracy. To obtain accurate values of erfc(x) = 1 - erf(x) in this range, use the Erfc(Double) function.

The error function for complex arguments can be computed using Faddeeva(Complex).

See Also