Returns the natural logarithm of the sum of the argument and 1.
Note that for small values x, the result of
log1p(x) is much closer to the true result of ln(1
+ x) than the floating-point evaluation of
log(1.0+x).
Special cases:
x | a value |
x + 1), the natural
log of x + 1
Diagram: Math