ERF(S) XENIX System V ERF(S)
Name
erf, erfc - Error function and complementary error function.
Syntax
#include <math.h>
double erf (x)
double x;
double erfc (x)
double x;
x
Description -t2
_e dt.
erf returns the error function of x, defined as 0
erfc, which returns 1.0 - erf(x), 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 = 5,
12 places are lost).
See Also
exp(S)
Notes
These routines must be linked by using the -lm linker
option.
Page 1 (printed 8/7/87)