C examples for math.h:erfc
function
<cmath> <ctgmath> <math.h>
Compute complementary error function
The complementary error function is equivalent to: erfc(x) = 1-erf(x)
long double erfcl (long double x); long double erfc (long double x); double erfc (double x); float erfcf (float x); float erfc (float x); double erfc (T x);
Parameter | Description |
---|---|
x | Parameter for the complementary error function. |
Complementary error function value for x.
#include <stdio.h> #include <math.h> /* erfc */ int main ()/*from www . j a v a 2s . c o m*/ { double param = 1.0; double result = erfc (param); printf ("erfc(%f) = %f\n", param, result ); return 0; }