Returns the error function of a double.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

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

Parameters

x
Type: System..::.Double
A double value.

Return Value

A double value specifying the error function of x.

Remarks

The error function method, Erf(x), is defined to be

{\rm{erf}}\left( x \right) 
            = {2 \over {\sqrt \pi  }}\int_0^x {e^{ - t^2 } } dt

All values of x are legal.

Plot of Erf(x)

See Also