How to calculate log(x, 10) log10 in Python

1 Answer

0 votes
import math 
  
print(math.log(8, 10))
print(math.log10(8))  
print(math.log10(2))  
print(math.log10(0.4))



'''
run:

0.9030899869919434
0.9030899869919435
0.3010299956639812
-0.3979400086720376

'''

 



answered Jul 13, 2019 by avibootz

Related questions

1 answer 207 views
2 answers 351 views
3 answers 369 views
1 answer 308 views
...