|
IDL Analyst Reference Guide: Special Functions |
|
The IMSL_ERF function evaluates the real error function erf ( x ). Using a keyword, the inverse error function erf –1(x) can be evaluated.
| Note This routine requires an IDL Analyst license. For more information, contact your ITT Visual Information Solutions sales or technical support representative. |
Result = IMSL_ERF(x [, /DOUBLE] [, /INVERSE])
The value of the error function erf(x).
Expression for which the error function is to be evaluated.
If present and nonzero, double precision is used.
Evaluates the real inverse error function erf–1(x). The inverse error function is defined only for –1 < x < 1.
The error function erf(x) is defined below:

All values of x are legal. The inverse error function y = erf –1(x) is such that x = erf (y).
Plot the error function over [ –3, 3 ]. The results are shown in Figure 12-1.
x = 6 * FINDGEN(100)/99 - 3 PLOT, x, IMSL_ERF(x), XTitle = 'x', YTitle = 'erf(x)'
Plot the inverse of the error function over ( –1, –1). The results are shown in Figure 12-2.
x = 2 * FINDGEN(100)/99 - 1 PLOT, x, IMSL_ERF(x(1:98), /Inverse), XTitle = 'x', $ YTitle = 'erf!E-1!N(x)'
IDL Online Help (March 06, 2007)