logp1

Calculates loge(x + 1).

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

Throws

InvalidOperationExceptionx is signaling NaN or x < 0
DivisionByZerox is -1.0
Underflowresult is too small to be represented
InexactExceptionthe result is inexact

Special values

xlog(x)
NaNNaN
±0.0-∞
-∞NaN
+∞+∞
e - 1+1.0
< -1.0NaN

Meta