Closed jcrist closed 10 years ago
Fixed:
eps
added for complex types. Fixes the complex constructor bug in a more elegant wayPoly.var
attribute changed to type string. Allows use of jω
or other symbols, as well as multiple character variablesI rolled back the changes to the printing function, as they were outside the scope of this enhancement. I'll open another issue where we can discuss the best way to implement compact printing.
I also fixed a small bug preventing complex polynomials from being created. There's no default comparison between a complex and a real (complex < real will error). Changed line 22 to fix that. Poly([1 + im, 1 - im]) now is valid.
Let me know what you think.