Accelerating the pace of engineering and science

erf

Error function

Y = erf(X)

Definitions

The error function erf(X) is twice the integral of the Gaussian distribution with 0 mean and variance of 1/2.

$\text{erf(}x\text{)=}\frac{2}{\sqrt{\pi }}{\int }_{0}^{x}{e}^{-{t}^{2}}dt$

Description

Y = erf(X) returns the value of the error function for each element of real array X.