Returns the complementary error function of a double.

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

Syntax

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

Parameters

x
Type: System..::.Double
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