Hack request: rational numbers

Rainer Deyke root at rainerdeyke.com
Sun Jan 28 19:19:12 EST 2001


"Erik Max Francis" <max at alcyone.com> wrote in message
news:3A749696.2BD57BA9 at alcyone.com...
> Rainer Deyke wrote:
>
> > Why not add native quaternion support to Python?  Quaternions are
> > complex
> > numbers where the imaginary part is a vector in three dimensions,
> > defined in
> > terms of unit vectors i, j, and k.
>
> Ah, but why?  :-)  Besides, the use of 1, i, j, k for quaternion units
> is inconsistent with using 1, j (not 1, i) for complex units.

It serves no real purpose except in some fairly specialized fields, but it
is easy to implement, doesn't get in the way, and is "fun" - just like the
current built-in support for complex numbers.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list