log10()

log10(x) returns log of input number x with base 10
import math
print(math.log10(2))  # 0.3010299956639812
print(math.log10(4))  # 0.6020599913279624
print(math.log10(5))  # 0.6989700043360189
Using negative number
For any value less than or equal to 0 , we will get ValueError
import math
print(math.log10(-2))
print(math.log10(0))
Above code will generate error.

log2 log1p() log()

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