NewRPL: Complex Numbers in Cartesian Form r[x,y] , ...
|
03-17-2017, 04:08 PM
(This post was last modified: 03-17-2017 04:17 PM by The Shadow.)
Post: #4
|
|||
|
|||
RE: NewRPL: Complex Numbers in Cartesian Form
I've always been a little dubious of using parentheses for complex numbers. For one thing, ordered pairs have plenty of other uses, which don't necessarily multiply in the complex manner. (Or even multiply at all.)
For that reason and others, I'd support using C(re, im) even on the stack. Or just always using the a+b*i form. EDIT: Oh, and while we're on the topic, how about a system variable or flag to change what i^2 evaluates to? +1 for split-complex, 0 for dual. And as long as I'm howling for the moon, how about adding complex j and k, so we can do quaternions? These could also perhaps be modified like i above, giving a wide range of capabilities. (Heck, you could store everything about i, j, and k in a single 3x3 matrix representing the multiplication table.) Not gonna ask for octonions, though. They make my head hurt. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)