The ERF function returns the value of the error function:
Result = ERF(Z)
The result is double-precision if the argument is double-precision, otherwise the result is floating-point. The result always has the same structure as Z. The ERF function also accepts complex arguments.
The expression for which the error function is to be evaluated. Z may be complex.
This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs. The values stored in the
To find the error function of 0.4 and print the result, enter:
PRINT, ERF(0.4D)
IDL prints:
0.42839236
Introduced: Pre 4.0
Z argument accepts complex input: 5.6
ERFC, ERFCX, EXPINT, GAMMA, IGAMMA