1 .\" Copyright 2008, Linux Foundation, written by Michael Kerrisk
2 .\" <mtk.manpages@gmail.com>
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
26 .TH ERFC 3 2013-10-29 "GNU" "Linux Programmer's Manual"
28 erfc, erfcf, erfcl \- complementary error function
33 .BI "double erfc(double " x );
34 .BI "float erfcf(float " x );
35 .BI "long double erfcl(long double " x );
41 Feature Test Macro Requirements for glibc (see
42 .BR feature_test_macros (7)):
48 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
49 _POSIX_C_SOURCE\ >=\ 200112L;
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600|| _ISOC99_SOURCE ||
59 _POSIX_C_SOURCE\ >=\ 200112L;
68 function returns the complementary error function of
70 that is, 1.0 \- erf(x).
72 On success, these functions return the complementary error function of
74 a value in the range [0,2].
78 is a NaN, a NaN is returned.
82 is +0 or \-0, 1 is returned.
94 If the function result underflows and produces an unrepresentable value,
95 the return value is 0.0.
97 If the function result underflows but produces a representable
98 (i.e., subnormal) value,
99 .\" e.g., erfc(27) on x86-32
100 that value is returned, and
101 a range error occurs.
105 for information on how to determine whether an error has occurred
106 when calling these functions.
108 The following errors can occur:
110 Range error: result underflow (result is subnormal)
114 An underflow floating-point exception
118 These functions do not set
120 .\" FIXME . Is it intentional that these functions do not set errno?
121 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
123 .SS Multithreading (see pthreads(7))
129 functions are thread-safe.
132 The variant returning
142 functions are provided to avoid the loss accuracy that
143 would occur for the calculation 1-erf(x) for large values of
145 (for which the value of erf(x) approaches 1).