expm1

Calculates ex - 1

@IEEECompliant("expm1", 42)
D
expm1
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is signaling NaN
UnderflowExceptionex - 1 is too small to be represented
OverflowExceptionex - 1 is too big to be represented
InexactExceptionthe result is inexact

Special values

xexpm1(x)
NaNNaN
±0.0±0.0
-∞-1.0
+∞+∞

Meta