vtjnash / Polynomial.jl

Polynomial manipulations
Other
6 stars 10 forks source link

Added support for alternative variables (fixes #19) #20

Closed jcrist closed 10 years ago

jcrist commented 10 years ago

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.

jcrist commented 10 years ago

Fixed:

I 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.