In the Programming mode of gcalctool, you have a log
button, which calculates the logarithm, but how do I know what base it's using and how do I change it?
For example, how would I calculate the base 2 logarithm for 16?
In the Programming mode of gcalctool, you have a log
button, which calculates the logarithm, but how do I know what base it's using and how do I change it?
For example, how would I calculate the base 2 logarithm for 16?
By default the log button calculates base-10 logarithms (while the "ln" button does, of course, base-e logarithms).
To specify a different base, you use a "subscript":
By the way, I found this pretty easily by accessing gcalctool's help (press F1) and looking for logarithms in the index.
You can also use the base change formula:
You may use this frequently and like a button instead of writing out the base change formula again and again. Add within gcalculator (kde) by selecting:
now to get log2(1024): type 1024 into the calculator and PRESS ENTER hit the 'fun' button select log2 the answer is 10