double erf (double x); float erff (float x);long double erfl (long double x);
double erf (double x); float erf (float x);long double erf (long double x); double erf (T x); // additional overloads for integral types
<cmath>
double
123456789101112
/* erf example */ #include <stdio.h> /* printf */ #include <math.h> /* erf */ int main () { double param, result; param = 1.0; result = erf (param); printf ("erf (%f) = %f\n", param, result ); return 0; }
erf (1.000000) = 0.842701