|
|
|
Description 2 The sqrt functions compute the nonnegative square root of x . A domain error occurs if the argument is less than zero. Returns 3 The sqrt functions return √ x . 7.12.8 Error and gamma functions 7.12.8.1 The erf functions Synopsis 1 #include <math.h> double erf(double x); float erff(float x); long double erfl(long double x); Description 2 The erf functions compute the error function of x . Returns 3 The erf functions return erf x = 2 √ π ∫ x 0 e − t 2 dt. 7.12.8.2 The erfc functions Synopsis 1 #include <math.h> double erfc(double x); float erfcf(float x); long double erfcl(long double x); Description 2 The erfc functions compute the complementary error function of x . A range error occurs if x is too large. Returns 3 The erfc functions return erfc x = 1 − erf x = 2 √ π ∫ ∞ x e − t 2 dt. 230 Library §7.12.8.2 |