Computes the power of e.
#include <math.h> double exp(double x); float expf(float x); long double expl(long double x);
x
A value from which to compute.
These functions returns ex, where e is the natural logarithm base value.
This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.
#include <math.h> #include <stdio.h> int main(void) { double x = 4.0; printf("The natural logarithm base e raised to the\n"); printf("power of %f is %f.\n", x, exp(x)); return 0; } Output: The natural logarithm base e raised to the power of 4.000000 is 54.598150.