Quote notation
From Wikipedia, the free encyclopedia
Quote notation is a represention of the rational numbers for which the addition, subtraction, and multiplication algorithms are the same as for the natural numbers, and division is easier than the usual division algorithm, and works in the same direction (right-to-left) as the other arithmetic algorithms. It was invented by Eric Hehner of the University of Toronto, and published in the SIAM Journal on Computation, v.8, n.2, May 1979, pp. 124–134.
The representation is based on Hensel's p-adic arithmetic. The basic idea is to represent the rational number as , where there are as many decimal digits in as in . Thus, 191/33 is 7-120/99 is 12'7, and − 10 is 0-90/9 is 9'0. (This representation of negative integers corresponds to the use of two's complement in binary representations.)
The extension of quote notation from the decimal system to the binary system, in which only two symbols are needed, is also explored in Hehner's paper.
[edit] External links
- "A new representation of the rational numbers for fast easy arithmetic", E.C.R. Hehner and R.N.S. Horspool