Function ErrorF(x)

ErrorF

ErrorF(
       x             ! (input) numerical expression
       )

Arguments

x

A scalar numerical expression.

Return Value

The function ErrorF returns the error function value \({\frac{1}{\sqrt{2\pi}}} \int_{-\infty}^x e^{-{\frac{t^2}{2}}}\, dt\).

Graph

../../_images/errorf.png

Example

_p_returnM1 := ErrorF(-1); ! ErrorF(-1) = 0.158655253931
_p_returnZ  := ErrorF( 0); ! ErrorF( 0) = 0.5
_p_returnP1 := ErrorF( 1); ! ErrorF( 1) = 0.841344746069

Note

The function ErrorF can be used in constraints of nonlinear mathematical programs.

See also