Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <math.h> double exp(double x); These functions calculate the exponential function for permissible floating-point numbers x. | |
Returnwert |
| if successful. |
| depending on the function type, if an overflow occurs. | |
Example | The following program calculates ex for an input value x. #include <math.h> #include <stdio.h> int main(void) { double x; printf("Please enter a floating-point number:\n"); if (scanf("%lf", &x) == 1) printf("exp(%g) = %g\n", x, exp(x)); return 0; } | |
See also | exp2, log, log2, log10, pow |