Python log1p function

log1p(x) function calculates the natural logarithm of (x + 1). It's a method of math module.

>>> import math
>>> math.log1p(1)
0.6931471805599452
>>> math.log1p(math.e - 1)
1.0