Download presentation
Presentation is loading. Please wait.
1
Log Tables And Their Lies
3
Histogram of Error of 9000 Logs
4
Two Sources of Error Table Interpolation
Table is rounded to 4 decimal places. Table rounding, if uniform random, introduces max error of +/- 0.5 in last digit. There may be ways to mitigate the rounding error… but no guarantees. Interpolation Interpolation is rounded to the same precision as the table. Table rounding, if random, introduces error of +/- 0.5 in last digit. The proportional parts portion of the table is faulty. Linear interpolation is OK for up to 5 places. Linear interpolation is easily corrected.
5
Errors in Tabulated Logs
All of the tabulated logs are correct to four digits. Error is due to rounding The rounding error is not uniform. Chi square test of errors of all 900 tabulated logs Sequences of 3 errors fail the chi-square test of uniformity in a 4x4x4 box. Errors worst at lower end of table There is an easy way to improve things: average log(x/2), log(x), and log(2x). No, you don’t get five places out of a four place table, but you do improve things.
6
Errors in Tabulated Values
The white bands correspond to slope of Log = 0.05, 0.06, 0.07, etc.
7
Rounding Error Plot: What are those nasty white bands???
The white bands are centered around x values of 8.68, 7.24, 6.20, 5.43, etc ? Those correspond to points where the slope of Log(x) is 0.05, 0.06, 0.07, 0.08, etc. (The dense areas correspond to slopes of 0.045, 0.055, 0.065, etc.) These bands contribute to the non-uniformity of the error distribution and partially frustrate attempts to average out tabulation error.
8
Errors in Tabulated Values: Histogram
9
Mitigating Rounding Error in Table
Error Statistical Summary Tabulated Averaged Max 0.50 0.33 Min -0.50 -0.36 RMS 0.29 0.12 AvAbs 0.25 0.10
10
More Averaging… If a little averaging is helpful, why not try more averaging? Specifically, a curve fit to a large number of tabulated log values. Disappointing results of this process follow…
12
Interpolation Fault Mitigation
The proportional parts in the table are faulty. Error is worst when the last digit is 9 So don’t let the last digit go above 5; interpolate down when last digit is above 5. This results in immediate improvement, uses the same table, and requires nothing more than a teaching change. Discard the proportional parts and use *d/X Carry an extra digit to avoid a random error of +/- 0.5 in the last digit. Use a slide rule for interpolation for communion with the ages!
13
Interpolating Logs Interpolating logs is easy!
Slope of log(x) is /x Slope at x is too great Slope at x+d is too small Between x and x+d is a point b where the slope is just right (mean value theorem in calculus) So log(x+d) = log(x) +d*f’(b) This is MUCH easier than lagrange interpolation.
14
Perfect Interpolation Example: Log(11)
We start with a number whose log is known exactly: log(10)=1.0000, and examine different slopes. Log(11) = Log(10) + (11-10)*f’(10) = = Log(11) = Log(10) + (11-10)*f’(11) = = Trying the midpoint as an approximation to the perfect magic point, Log(11) = Log(10) + (11-10)*f’(10.5) = = error not bad! Recommendation: Memorize the following constants: Log(e) = easy to remember because of the repeat. Of course, more is better. Log(2) = this is actually good to 8 places. Again, more is better Log(3) = I only know this to 10 places. But 3^8 is close to 2^16/10, so you can… For the log of anything, find a number nearby that has factors of 2, 3, and 5, then extrapolate. For example, to get log(7), note that 7^4 = Extrapolate from 2400. If you are stuck on a remote island, with a shipload of pencils and paper… and erasers…
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.