1 .\" Copyright 2008, Linux Foundation, written by Michael Kerrisk
2 .\" <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH erfc 3 (date) "Linux man-pages (unreleased)"
8 erfc, erfcf, erfcl \- complementary error function
11 .RI ( libm ", " \-lm )
16 .BI "double erfc(double " x );
17 .BI "float erfcf(float " x );
18 .BI "long double erfcl(long double " x );
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
28 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE
29 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
30 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
36 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
37 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
38 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
41 These functions return the complementary error function of
43 that is, 1.0 \- erf(x).
45 On success, these functions return the complementary error function of
47 a value in the range [0,2].
51 is a NaN, a NaN is returned.
55 is +0 or \-0, 1 is returned.
67 If the function result underflows and produces an unrepresentable value,
68 the return value is 0.0.
70 If the function result underflows but produces a representable
71 (i.e., subnormal) value,
72 .\" e.g., erfc(27) on x86-32
73 that value is returned, and
78 for information on how to determine whether an error has occurred
79 when calling these functions.
81 The following errors can occur:
83 Range error: result underflow (result is subnormal)
87 An underflow floating-point exception
91 These functions do not set
93 .\" It is intentional that these functions do not set errno for this case
94 .\" see http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
96 For an explanation of the terms used in this section, see
104 Interface Attribute Value
109 T} Thread safety MT-Safe
115 C99, POSIX.1-2001, POSIX.1-2008.
117 The variant returning
127 functions are provided to avoid the loss accuracy that
128 would occur for the calculation 1-erf(x) for large values of
130 (for which the value of erf(x) approaches 1).