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

2        x
erf x =     -----    (integral)  e-t2 dt .
         (sqrt)(pi)   0