erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt The erfc() function returns the complementary error func­ tion of x, that is 1.0 - erf(x).