new Numeric PEP proposal

Scottie me at nospam.net
Sun Apr 1 17:57:16 EDT 2001


Pi as a base is interesting, but if we are imagining new bases,
let's use W. Penney's i-1.  It has great computer applications.
    PyBase = -1+1j
It only has two digits (0 and 1), and so can work brilliantly in
current hardware.  It can represent all positive and negative
numbers in the complex plane without the pesky need for a sign
bit.  It is far better than its rival, sqrt(-2), in that sqrt(-1) can be
represented exactly in finitely many digits.

Arithmetic in PyBase is a bit harder w/o hardware support, but
then computer arithmetic in binary is hard w/o hardware support.
    Counting in PyBase: 1p, 1100p, 1101p,  111010000p, ...
    Negated: 11101p , 11100p, 10001p, 10000p, ...
    Imaginary: 11p, 1110100p, 1110111p, 1110000p, ...
    Negative Imaginary: 111p, 100p, 110011p, 110000p, ...

This base is a number system worth switching to.   Now if only
we can convince the chipmakers, ....

-Scott David Daniels






More information about the Python-list mailing list