expm1

fnreal expm1(real x) @trusted pure nothrow @nogc

Calculates the value of the natural logarithm base (e) raised to the power of x, minus 1.

For very small x, expm1(x) is more accurate than exp(x)-1.

x ex-1
±0.0 ±0.0
+∞ +∞
-∞ -1.0
NaN NaN
fndouble expm1(double x) @safe pure nothrow @nogc

ditto

fnfloat expm1(float x) @safe pure nothrow @nogc

ditto