Qfwfq Posted September 5, 2007 Report Posted September 5, 2007 Base 2 is advantageous because even just the integer part gives better resolution than a larger base and it's easy to reckon by just doubling repeatedly: 2, 4, 8, 16 etc. Easier yet for an old Z80 nerd! :D For estimating the fractional part by the ratio r with an exact power of 2 it's enough to add lg r so it's enough to know the base 2 logarithm of a few numbers between 1 and 2, such as 1.2, 1.5, 1.7 etc. To get these it's enough to divide the natural logarithms by ln 2 which is about 0,69314718, so for instance: [math]\lg 1.5 = \frac{\ln 1.5}{\ln 2} = \frac{\ln 1.5}{0.69314718} = 0.585[/math] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.