cc [ flag ... ] file ... -lm [ library ... ] #include <math.h>
The erf() function computes the error function of x, defined as:
The erfc() function computes 1.0 - erf(x).
Upon successful completion, erf() and erfc() return the value of the error function and complementary error function, respectively.
If x is NaN, NaN is returned.
No errors will occur.
The erfc() function is provided because of the extreme loss of relative accuracy if erf(x) is called for large x and the result subtracted from 1.0.
See attributes(5) for descriptions of the following attributes:
isnan(3M), attributes(5)