Scilab Function
Last update : 18/05/2014

erf - The error function.

Calling Sequence

y = erf(x)

Parameters

Description

erf computes the error function:


                    /x     2
            2       |    -t
     y = -------    |   e    dt
         sqrt(pi)  /0
                   
   
    

Examples


deff('y=f(t)','y=exp(-t^2)');
erf(0.5)-2/sqrt(%pi)*intg(0,0.5,f)
 
  

See Also

erfc,  erfcx,  calerf,  cdfnor,  

Author

W. J. Cody (code from Netlib (specfun))