fjames86 / fpoly

Manipulate dense multivariate polynomials
0 stars 0 forks source link

-1 coeff pretty printer #7

Closed fjames86 closed 11 years ago

fjames86 commented 11 years ago

if the coeff is 1, it will print X, but if it's -1 then it wil print - 1*X. need to put the =1 checker after it negates the value.

fjames86 commented 11 years ago

also will (incorrectly) print a positive coeff if the first coeff (power > 0) to be printed is negative. e.g. (make-fpoly '(x) 2 '(0 -1 0)) -> 1_X rather than -1_X (eventually should be just -X with the above changes also made)

fjames86 commented 11 years ago

fixed