Tricks in computer arithmetic
Tricks in computer arithmetic
(This post is also available as a PDF, with better typesetting for the mathematical formulas and syntax highlighting for the code listings.)
People who do a lot of mental arithmetic often make use of “tricks” to carry out calculations. An example familiar to most people is that you can multiply an integer represented by its decimal expansion by 10 by simply adding an extra 0 digit: for example,…
View On WordPress















