Calculate logarithm in python
Question: I am wondering why the result of `log base 10 (1.5)` in python =
0.405465108108 while the real answer = 0.176091259.

This is the code that I wrote:

    
    
    import math
    print math.log(1.5)
    

Can someone know how to solve this issue


Answer: From [the
documentation](https://docs.python.org/2/library/math.html#math.log):

> 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)`.

But the log10 is made available as `math.log10()`, which does not resort to
log division if possible.

