I would like to know how to calculate the logarithm of a number in base 2 and on any other basis. I know that in java you can calculate the logarithm of a number in base 10 using the Math.log10
function, but I do not know how to calculate the log of any number in base 2 for example.
Thank you in advance for your attention!