erf

View page source

The Error Function

Syntax

y = erf ( x )

Description

Returns the value of the error function which is defined by

\[{\rm erf} (x) = \frac{2}{ \sqrt{\pi} } \int_0^x \exp( - t * t ) \; {\bf d} t\]

x, y

See the Possible Types for a unary standard math function.

Atomic

This is an atomic operation .

Example

The file erf.cpp contains an example and test of this function.