Computes the complementary error function.
Namespace:
Meta.Numerics.FunctionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
Parameters
- x
- Double
The argument.
Return Value
The value of erfc(x) = 1 - erf(x).
Remarks
The complementary error function can be used to express the area in the tails of a Bell curve beyond a given distance from its center.
It can be defined via an integral as erfc(x) = (2/√π) x∫∞dt e-t2.
For small values of x, erfc(x) ≈ 1 to within floating-point accuracy. To obtain accurate values of erfc(x) = 1 - erf(x) in this region, use the Erf(Double) function.