1ERFC(3) Linux Programmer's Manual ERFC(3)
2
3
4
6 erfc, erfcf, erfcl - complementary error function
7
9 #include <math.h>
10
11 double erfc(double x);
12 float erfcf(float x);
13 long double erfcl(long double x);
14
15 Link with -lm.
16
17 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19 erfc():
20 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
21 _POSIX_C_SOURCE >= 200112L;
22 or cc -std=c99
23 erfcf(), erfcl():
24 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600||
25 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
26 or cc -std=c99
27
29 The erfc() function returns the complementary error function of x, that
30 is, 1.0 - erf(x).
31
33 On success, these functions return the complementary error function of
34 x, a value in the range [0,2].
35
36 If x is a NaN, a NaN is returned.
37
38 If x is +0 or -0, 1 is returned.
39
40 If x is positive infinity, +0 is returned.
41
42 If x is negative infinity, +2 is returned.
43
44 If the function result underflows and produces an unrepresentable
45 value, the return value is 0.0.
46
47 If the function result underflows but produces a representable (i.e.,
48 subnormal) value, that value is returned, and a range error occurs.
49
51 See math_error(7) for information on how to determine whether an error
52 has occurred when calling these functions.
53
54 The following errors can occur:
55
56 Range error: result underflow (result is subnormal)
57 An underflow floating-point exception (FE_UNDERFLOW) is raised.
58
59 These functions do not set errno.
60
62 C99, POSIX.1-2001. The variant returning double also conforms to SVr4,
63 4.3BSD.
64
66 The erfc() functions are provided to avoid the loss accuracy that would
67 occur for the calculation 1-erf(x) for large values of x (for which the
68 value of erf(x) approaches 1).
69
71 cerf(3), erf(3), exp(3)
72
74 This page is part of release 3.53 of the Linux man-pages project. A
75 description of the project, and information about reporting bugs, can
76 be found at http://www.kernel.org/doc/man-pages/.
77
78
79
80GNU 2010-09-20 ERFC(3)