erf

(function for equations)

 

Usage:

erf (x)

Definition:

(2 / sqrt( π )) Integral from 0 to x of exp (-t^2) dt

Required:

x is an unrestricted real

This returns the error function of x.  It is useful for calculating integrals of the normal distribution.

If x is large, you can obtain better accuracy with erfc.