erf

From cppreference.com
< c‎ | numeric‎ | math
 
 
 
Common mathematical functions
Functions
Basic operations
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)(C99)(C99)
Exponential functions
(C99)
(C99)
(C99)
(C99)
Power functions
(C99)
(C99)
Trigonometric and hyperbolic functions
(C99)
(C99)
(C99)
Error and gamma functions
erf
(C99)
(C99)
(C99)
(C99)
Nearest integer floating point operations
(C99)(C99)(C99)
(C99)
(C99)
(C99)(C99)(C99)
Floating point manipulation functions
(C99)(C99)
(C99)
(C99)
Classification
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
Macro constants
 
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.

Contents

[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

[edit] See also

(C99)
complementary error function
(function)

[edit] External links

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