1ERF(3) Linux Programmer's Manual ERF(3)
2
3
4
6 erf, erff, erfl, erfc, erfcf, erfcl - error function and complementary
7 error function
8
10 #include <math.h>
11
12 double erf(double x);
13 float erff(float x);
14 long double erfl(long double x);
15
16 double erfc(double x);
17 float erfcf(float x);
18 long double erfcl(long double x);
19
20 Link with -lm.
21
23 The erf() function returns the error function of x; defined as
24
25 erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt
26
27 The erfc() function returns the complementary error function of x, that
28 is 1.0 - erf(x).
29
31 SVr4, 4.3BSD, C99. The float and long double variants are requirements
32 of C99.
33
35 cerf(3), exp(3)
36
37
38
39BSD 2002-07-27 ERF(3)