I need to do log base 2 in long expressions such as this calculator handles. Is there a way to make it handle log base 2 instead of log base 10?
There is a change of base formula that will allow you to change from any base to base 10:
Using common logs (that is base 10 logs):
It is: log(base) number = log(number) / log(base).
Example: If you want to find the log (in base 2) of 47: log(base 2) 47 = log(47) / log(2)
This will work for any base:
If you want to find the log (in base 8) of 119: log(base 8) 119 = log(119) / log(8)
This also works if you want to use natural logs:
Use the formula: log(base) number = ln(number) / ln(base).
Example: log(base 2) 47 = ln(47) / ln(2).
There is a change of base formula that will allow you to change from any base to base 10:
Using common logs (that is base 10 logs):
It is: log(base) number = log(number) / log(base).
Example: If you want to find the log (in base 2) of 47: log(base 2) 47 = log(47) / log(2)
This will work for any base:
If you want to find the log (in base 8) of 119: log(base 8) 119 = log(119) / log(8)
This also works if you want to use natural logs:
Use the formula: log(base) number = ln(number) / ln(base).
Example: log(base 2) 47 = ln(47) / ln(2).
That is certainly true and that is how it is usually done but maybe the calc can handle different bases - i am not sure.
Remember your first answer? Guess what? geno3141 solved it, not Alan or Ninja! Lol!