IMSL C# Numerical Library

Sfun.Erfc Method 

Returns the complementary error function of a double.

public static double Erfc(
   double x
);

Parameters

x
A double value.

Return Value

A double value specifying the complementary error function of x.

Remarks

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

{\rm{erfc}}\left( x \right) = {2 \over 
            {\sqrt \pi  }}\int_x^\infty  {e^{ - t^2 } } dt

The argument x must not be so large that the result underflows. Approximately, x should be less than

{\left[ -ln \left( {\sqrt {\pi}}s 
            \right) \right]}^{1/2}

where s = Double.Epsilon is the smallest representable positive floating-point number.

Plot of Erfc(x)

See Also

Sfun Class | Imsl.Math Namespace | Example