C examples for math.h:expm1
function
<cmath> <ctgmath> <math.h>
Returns e raised to the power x minus one: e^x-1.
long double expm1l (long double x); long double expm1 (long double x); double expm1 (double x); float expm1f (float x); float expm1 (float x); double expm1 (T x);
Parameter | Description |
---|---|
x | Value of the exponent. |
e raised to the power of x, minus one.
#include <stdio.h> #include <math.h> /* expm1 */ int main ()// w w w.jav a 2 s. c o m { double param = 1.0; double result = expm1 (param); printf ("expm1 (%f) = %f.\n", param, result ); return 0; }