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()
Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





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