Computes exp(x)-1, where exp(x) is the natural exponential function.
exp(x)-1
exp(x)
input value
function value
var v = expm1( 0.2 ); // returns ~0.221
var v = expm1( -9.0 ); // returns ~-0.9999
var v = expm1( 0.0 ); // returns 0.0
var v = expm1( NaN ); // returns NaN
Computes
exp(x)-1
, whereexp(x)
is the natural exponential function.