137 points · by sohkamyung · 9y ago · 69 comments
http://www.ee.ryerson.ca/~elf/abacus/feynman.html
However, the correct Portuguese for "cube roots" is "raízes cúbicas", not "raios cubicos"(—edited with thanks to JetSpiegel for the correction!). I've thought that Feynman may have been better at speaking Portuguese than at spelling it, or that most of Surely You're Joking may have been transcribed from tapes by Ralph Leighton, who probably didn't speak Portuguese.)
Edit: Also, I was partly inspired to learn Portuguese by Richard Feynman. I didn't imagine that that would lead to complaining about his spelling. :-)
1. Pick a number HI whose square is obviously higher than N.
2. Pick a number LO whose square is obviously lower than N.
3. Choose a number MED which is roughly (HI+LO)/2.
4. If MED * MED > N, replace HI with MED, else replace LO with MED.
5. Go to 3.
6. MED converges to your answer.
Doesn't converge quite as fast maybe, but a million times easier to grok. I got to where the author got, ~87.8, in 8 iterations even with terrible initial HI and LO guesses (100 and 50 respectively).What didn't you understand about manually calculating square roots? Because your method requires tons of troublesome multiplication of numbers that get longer with each step.
Why would you be both insulting and wrong in the same post?
Or did you think that multiplication somehow isn't manual?
Next time work on phrasing your comment a bit better. It makes the world a better place.
The math part had this weird American division symbol I had never seen before, and the closest thing I had seen was square root. Which I found a bit ambitious, but I went ahead and did the square roots.
They accepted me despite the fact that I couldn't do division, but put me in the "remedial math" class. Got out of it when I did the in-class "calculator exercises" (weird concept, that) in my head, faster than anyone with the calculator.
[1] [ https://en.wikipedia.org/wiki/Methods_of_computing_square_ro... ]
Start with a ball park estimate of the root of x, then take an average of (estimate + x / the estimate). That's your new estimate. Rinse and repeat until convergence to an acceptable degree.
The biggest drawback if doing this by hand is the division problem can be a pain.
I see the attraction and "purity" of the proposed lost art.
n-th roots are not quite as nice, but still work fairly simply: ((n-1) a + x/a^(n-1) )/n
You can see that the fixed point (a = nth root of x) works out as it should.
Calculators of any kind were forbidden at school, which sucked, if you had one of those cool Casio watch calculators. Shorts were also forbidden, because suffering is good for you, apparently.
I've never had to do it since, of course. Though I do now wear shorts on occasion.
FWIW, I did too in the 90s/00s, though I confess I don't remember the method now. I think it was Newton-Rhaphson.
Estimate sqrt(17):
Clearly it has to be between 4 and 5.
Try 4.5. Result: 20.25 Try 4.2. Result: 17.64 Try 4.1. Result: 16.81 Try 4.15. Result: 17.01. Probably good enough for most practical purposes.
In this case the value is sanity checking a calculator / program.
Were any memory tricks involved (e.g. pegs, palaces) or did he just go through a table of square roots every morning?
There are 12 numbers from 4.0 through 5.0 inclusive - in steps of 0.1, and there are 10 integer numbers from 16 through 25 inclusive - clearly there's an uneven, but still somewhat smooth mapping from one through the other via the square function (or root function, for that matter). It's easy to see (note that python rounds down up to .5 inclusive):
for i in range(40, 51):
n=i/10.0
print(n, round(n**2))
4.0 16
4.1 17
4.2 18
4.3 18
4.4 19
4.5 20
4.6 21
4.7 22
4.8 23
4.9 24
5.0 25
Now, for a computer algorithm, the couple of extra steps by using binary search doesn't really matter, but I find that when doing math by hand, it can be a great benefit to avail oneself of intuition, to be able to skip a few steps - especially when working in this manner where you "check your guess" at every step - so you won't risk a wrong answer, the only risk is wasted work.This is indeed a bit different when approximating a more complicated function, eg one that doesn't monotonically increase/decrease.
Since the term q for solving the remainder r for any step as in the binomial r = x2 - 4p2 - q(4p + q) is either 1 or 0 in a base-2 system, evaluating the "fit" becomes merely a matter of testing a boolean value. (Therefor we can go for a straight-forward algorithm. No need for interpolations, here.)
So 4^2 = 16 is under by 1, add 0.1. 4.1^2 = 16.81 is off by around .2, add 0.02. 4.12^2 = 16.9744 so add .003. You're basically adding a digit at a time without needing division.
17 is a bit over 5·5·2/3, which is a bit under 2^(1.4 + 1.4 + 1 – 1.7) = 2^4.1 [base 12], now to take the square root we get 2^2.06 ~ 4·35/34 [base 10], but we want something a bit higher, so for a round number to cancel the 4 we can guess 4·33/32 = 33/8 [base 10].
That's because in Dutch we just call it 'root' (wortel).
I really wish teachers used more graphic forms in math because it helps to understand what kind of problems it can solve.
I am asking because in France we have the official term racine carrée (square root), abbreviated to racine (root) when the "square" is implied.
This is part of an excursus trying to explain, how basic math was implemented on the DEC PDP-1, namely in Spacewar!, the first digital video game (1961/62). The excursus starts at http://www.masswerk.at/spacewar/inside/insidespacewar-pt6-gr... (there's a tab on the bottom right for an instruction list of the PDP-1, mind that the PDP-1 uses 1's-complement for negative numbers).
This describes how to find the side length of the square, who's area is smaller than the rectangle.
I don't think its important to the calculation though
: something usually requiring some skill that not many people do any more
ex: Writing letters has become something of a lost art.(SNL had a whole bit on this back in the 90's: "a chickpea is neither a chick nor a pea, discuss")
https://en.wikipedia.org/wiki/Binary_search_algorithm
rather than representing numbers or performing arithmetic in base 2.
I've never heard of anyone below the age of 30 learning in school how to do them manually.
(Of course, I learned how to calculate square roots on paper before I went to college, but only because I asked my father to show me how.)
nyah!