1erf(3M) Mathematical Library Functions erf(3M)
2
3
4
6 erf, erff, erfl - error function
7
9 c99 [ flag... ] file... -lm [ library... ]
10 #include <math.h>
11
12 double erf(double x);
13
14
15 float erff(float x);
16
17
18 long double erfl(long double x);
19
20
22 These functions compute the error function of their argument x, defined
23 as:
24
25 2/sqrt(pi)*intregral from 0 to x of exp(-t*t) dt
26
28 Upon successful completion, these functions return the value of the
29 error function.
30
31
32 If x is NaN, a NaN is returned.
33
34
35 If x is ±0, ±0 is returned.
36
37
38 If x is ±Inf, ±1 is returned.
39
40
41 If x is subnormal, 2/sqrt(pi) * 2 is returned.
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Interface Stability │Standard │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │MT-Level │MT-Safe │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 erfc(3M), feclearexcept(3M), fetestexcept(3M), isnan(3M),
59 math.h(3HEAD), attributes(5), standards(5)
60
61
62
63SunOS 5.11 12 Jul 2006 erf(3M)