Compute Natural Exponential - 1

Computes an implementation-dependent approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e is the base of the natural logarithms). The result is computed in a way that is accurate even when the value of x is close 0.

Examples in JavaScript
console.log(Math.expm1(0));
// expected output: 0

console.log(Math.expm1(1));
// expected output: 1.718281828459045

console.log(Math.expm1(-1));
// expected output: -0.6321205588285577

console.log(Math.expm1(2));
// expected output: 6.38905609893065

Math.expm1(-1); // -0.6321205588285577 
Math.expm1(0);  // 0
Math.expm1(1);  // 1.718281828459045