##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# erf

From cppreference.com
< c‎ | numeric‎ | math

Defined in header `<math.h>` |  |
float erff( float arg ); |  | (since C99)
double erf( double arg ); |  | (since C99)
long double erfl( long double arg ); |  | (since C99)

Computes the error function of `arg`.

### [edit] Parameters

arg | - | floating point value

### [edit] Return value

The value of the error function of `arg`, that is

2
√π

∫arg
0 e-t2
dt.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

erfc (C99) | complementary error function (function) [edit]
C++ documentation for erf

### [edit] External links

Weisstein, Eric W. "Erf." From MathWorld--A Wolfram Web Resource.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/math/erf&oldid=62570"
Category:

- Todo no example