Numpy log1p() is a mathematical function that helps the user to calculate the natural logarithmic value of x+1 where x belongs to all the input array elements. log1p is reverse of exp(x) – 1.

Numpy log1p()

Numpy log() function is used to get the natural logarithm of value x+1, where x is an element of an array or x is an object. The log1p is the reverse of exp(x) – 1.

Syntax

numpy.log1p(array[, out] = ufunc ‘log1p’)

#python #numpy

Numpy log1p Example | np log1p() in Python
2.10 GEEK