log2p1

Calculates log2(x + 1).

@IEEECompliant("log2p1", 42)
D
log2p1
(
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
+∞+∞
+1.0+1.0
< -1.0NaN

Meta