I am wondering why the result of log base 10 (1.5) in python = 0.405465108108 while the real answer = 0.176091259.
log base 10 (1.5)
This is the code that I wrote:
If you use log without base it uses e.
e
From the comment
Return the logarithm of x to the given base. If the base not specified, returns the natural logarithm (base e) of x.
Therefor you have to use:
import math print( math.log(1.5, 10))