Or login with:
#include <math.h>| double | exp (double x) |
| long | expl (long double x) |
| float | expf (float x) |
| double | exp2 (double x) |
| long | exp2l (long double x) |
| float | exp2f (float x) |
| double | expm1 (double x) |
| long | expm1l (long double x) |
| float | expm1f (float x) |
#include <stdio.h> #include <math.h> int main(void) { double result, x = 4.34; result = exp(x); printf("'e' raised to the power of %.2lf (e^%.2lf) = %.2lf\n", x, x, result); return 0; }
'e' raised to the power of 4.34 (e^4.34) = 76.71
You must login to leave a messge