log1p()

log1p(x) returns natural logarithm of 1+x (base e )( What is e ? )
import math
print(math.log1p(2))  # 1.0986122886681098
print(math.log1p(4))  # 1.6094379124341003
print(math.log1p(0))  # 0.0 
Using negative number
For any value less than or equal to 0 , we will get ValueError
import math
print(math.log1p(-2))
Above code will generate error.

log modf()


plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer