function
<cmath> <ctgmath>
erfdouble 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
Compute error function
Returns the error function value for x.Header
<tgmath.h>provides a type-generic macro version of this function.
are provided in this header (
<cmath>
) for the
integral types: These overloads effectively cast
xto a
double
before calculations (defined for
Tbeing any
integral type).
1
2
3
4
5
6
7
8
9
10
11
12
/* 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4