function
<cmath> <ctgmath>
expdouble exp (double x); float expf (float x);long double expl (long double x);
double exp (double x); float exp (float x);long double exp (long double x);
double exp (double x); float exp (float x);long double exp (long double x); double exp (T x); // additional overloads for integral types
Compute exponential function
Returns the base-e exponential function of x, which is e raised to the power x:ex
.
Header
<tgmath.h>provides a type-generic macro version of this function.
If an overflow
range erroroccurs, the global variable
errnois set to
ERANGE.
1
2
3
4
5
6
7
8
9
10
11
12
/* exp example */
#include <stdio.h> /* printf */
#include <math.h> /* exp */
int main ()
{
double param, result;
param = 5.0;
result = exp (param);
printf ("The exponential value of %f is %f.\n", param, result );
return 0;
}
The exponential value of 5.000000 is 148.413159.
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