3 ms·
Sure having your tools ready - in some cases this means, memorized - will be useful when needed, but. Consider your example of the CRT. You are for interpolati
by mdp2021 5y ago
Sure having your tools ready - in some cases this means, memorized - will be useful when needed, but.
Consider your example of the CRT. You are for interpolating, I tend towards factoring - no issue.
First we memorize the log₁₀ of the main factors:
2→ .3 , 3→ .48 , 5→ .7 , 7→ .845 , 11→ 1.04 , 13→ 1.115 , 17→ 1.23 , 19→ 1.28
...a good exercise that may allow us, potentially, to perform mental computations through simpler operations within a 1% error margin.
And we could, in the example, perform (.78+1)+(.9+.48)+.9+(1.04-1) = 4.1 . Good. But now, one still needs a calculator to perform 10^4.1 ... :) This does not happen when we mentally multiply - we have ways to remain within acceptable approximation and still not need "crutches" printed in paper or silicon.
Though of course, again: better with than without resources. For what I am concerned, that handful of factors will be memorized with priority not inferior to the date of the battle of Bosworth.
- kragen 5y agoYou don't need a calculator to perform 10⁴·¹; 10·⁰⁸ = 1.2 and 10·¹¹ = 1.3, so (interpolating) 10·¹ is about 1.27, so 10⁴·¹ is about 12700. (The truth is about 12590, but that's within the margin of error.)
- mdp2021 5y agoYou are right, I did not realize. But one should use more precise values to make it work. 10^0.08 = 1.202 and 10^0.115 = 1.303 : 20/35 in the distance from 0.08 and 0.115, where you have 0.1, you likewise proceed with the same proportion on the results and obtain 1.202+0.057 = 1.259 Thing is, practice is required, and experience in managing precision confidently in this realm. Edit: In fact, the linear interpolation can work surprisingly well, but the space in linear vs logarithmic remains warped, and it is easy to err without realizing. I just threw those numbers in a calculator to verify it: l12.d = Log10(1.2) ==> 0.0791812460476248175522684 l13.d = Log10(1.3) ==> 0.1139433523068367759556452 dst.d = (0.1-l12)/(l13-l12) lrs.d = 1.2 + 0.1*dst ==> 1.2598892190166359750236325 Log10(lrs) ==> 0.1003323596533426953492096 Pow(10,0.1) ==> 1.2589254117941672816982646
- kragen 5y agoSure, especially with very imprecise values like 1.2 and 1.3 the error can be quite significant; generally you only interpolate tenths to get a single extra digit of precision, because mentally multiplying or dividing by .2 or .3 is a lot easier than multiplying by 20/35 or something. In theory you could use a more precise form of interpolation like quadratic Hermite interpolation or cubic spline interpolation, but for mental work I think that almost never pays off. You may be aware that the linear interpolation error for a regular function scales as the square of the interval size, so if the table you're interpolating from has 10× as many entries, you get 100× less absolute error.