1ERF(3M)                                                                ERF(3M)
2
3
4

NAME

6       erf, erfc - error functions
7

SYNOPSIS

9       #include <math.h>
10
11       double erf(x)
12       double x;
13
14       double erfc(x)
15       double x;
16

DESCRIPTION

18       Erf(x) returns the error function of x; where
19
20       erf(x) = 2/sqrt(pi)∗integral from 0 to x of exp(-t∗t) dt.
21
22       Erfc(x) returns 1.0-erf(x).
23
24       The  entry for erfc is provided because of the extreme loss of relative
25       accuracy if erf(x) is called for large x and the result subtracted from
26       1.  (e.g. for x = 10, 12 places are lost).
27

SEE ALSO

29       math(3M)
30
31
32
334.3 Berkeley Distribution        May 12, 1986                          ERF(3M)
Impressum