IMSL C# Numerical Library

Sfun.Erf Method 

Returns the error function of a double.

public static double Erf(
   double x
);

Parameters

x
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

Sfun Class | Imsl.Math Namespace | Example