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:
From the documentation:
With one argument, return the natural logarithm of x (to base e). With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).
With one argument, return the natural logarithm of x (to base e).
With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).
log(x)/log(base)
But the log10 is made available as math.log10(), which does not resort to log division if possible.
math.log10()