Computes the error function.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double Erf(
	double x
)
Public Shared Function Erf ( _
	x As Double _
) As Double
public:
static double Erf(
	double x
)

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