Sunday 8 April 2012

log base 2 or x in java or any other programming language

if you want to take log base 2 or 3 or 4 or any thing the standard formula for base conversion


x is the base and M is the value you want to take log.

Now only for base 2