Calculate logarithm in python

The Solution to Calculate logarithm in python is


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

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

~ Answered on 2015-11-17 10:35:06


Most Viewed Questions: