Name

erfinv — The inverse of the error function.

Calling Sequence

y = erfinv(x)

Parameters

x

real vector or matrix

y

real vector or matrix (of same size than x)

Description

erfinv computes the inverse of the error function erf. x = erfinv(y) satisfies y = erf(x), -1 <= y < 1, -inf <= x <= inf.

Examples

x=linspace(-0.99,0.99,100);
y=erfinv(x);
plot2d(x,y)
norm(x-erf(y),'inf')
  

See Also

erfc , cdfnor

References

Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972.