function
<cmath> <ctgmath>
erfcdouble erfc (double x); float erfcf (float x);long double erfcl (long double x);
double erfc (double x); float erfc (float x);long double erfc (long double x); double erfc (T x); // additional overloads for integral types
Compute complementary error function
Returns the complementary error function value for x.The complementary error function is equivalent to:
erfc(x) = 1-erf(x)
Header
<tgmath.h>provides a type-generic macro version of this function.
are provided in this header (
<cmath>
) for the
integral types: These overloads effectively cast
xto a
double
before calculations (defined for
Tbeing any
integral type).
If an underflow range error occurs:
1
2
3
4
5
6
7
8
9
10
11
12
/* erfc example */
#include <stdio.h> /* printf */
#include <math.h> /* erfc */
int main ()
{
double param, result;
param = 1.0;
result = erfc (param);
printf ("erfc(%f) = %f\n", param, result );
return 0;
}
erfc (1.000000) = 0.157299
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4