Go to: Synopsis. Return value. MEL examples.

Synopsis

erf float

erf is NOT undoable, NOT queryable, and NOT editable.

Returns the error function of the argument, call it x, defined as:
(2 / sqrt(pi)) integral{0 to x} of (e ** -t **2) dt. This command is implemented using the builtin system functions. Special Note:
There is also an erfc command which returns 1.0 - erf(x), and is provided because of the extreme loss of relative accuracy if erf(x) is called for large x and the result subtracted from 1.0 (e.g., for x = 10, 12 places are lost).

Return value

floatError value

MEL examples

// Return the error function of 1.0
erf 1.0;
// Result: 0.842701 //