I've always hated math, but this was really cool.
It's even simpler for the computer. Doubling is a left shift (e.g. 0011 becomes 0110). Also, looking at single digits, you can only multiply by 0 or 1 (yielding zero or the original number). So multiplying A * B becomes:
- is the rightmost digit of B 1? if so, add A to sum.
- left shift A and repeat with next digit of B
But binary is lame. ENIAC could count to 10 *and* strike fear in the hearts of cold war enemies. I want my computer to have tubes, dammit.
The multiplication technique was nothing new to me (and of course it can be extended to exponentiation, where instead of doubling the number you square it, and instead of adding it to the accumulator you multiply it), but for some reason I had never considered that inverse method for division. If I'd learned math that way then maybe I wouldn't always just be grabbing my cellphone for the calculator app to do simple math.
those sleeves are ridiculous.
This seems so much easier than doing long division or multiplication.
Why aren't we teaching this in school instead of memorizing tables?
You'd probably have to either rework the curriculum around binary or still teach people how to efficiently multiply base-10 numbers by 2. Also, I wonder if memorizing the 10x10 table helps out other aspects of memory retention and so on.
Like fluffy said, you need to double numbers (which itself requires tables). But people still use this method.
(His getting the "bits" up front is the same as repeatedly halving and checking the remainder.)
|Robert DeNegro |
Hey! Iggy Pop's pop!
Also used in measuring ingredients.
that's interesting. how does it make it easier? do you use the measuring cups with it?
| Register or login To Post a Comment|