log1p

Calculates the natural logarithm of 1 + x.

For very small x, log1p(x) will be more accurate than log(1 + x).

Special Values
xlog1p(x)divide by 0?invalid?
±0.0±0.0nono
-1.0-∞yesno
<-1.0NaNnoyes
+∞-∞nono
real
log1p
(
real x
)

Meta