Complementary error function
#include <math.h> double erfc ( double x ); float erfcf ( float x );
libm
The erfc() and erfcf() functions calculate the complementary error function of x; the result of the error function is subtracted from 1.0. This is useful since places disappear when x is large.
The erf() function computes:
This equality is true: erfc(-x) = 2 - erfc(x)
The value of the error function. If x is NAN, NAN is returned.
erfc() is standard Unix; erfcf() is ANSI (draft)
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |