The documentation for powerdisp
indicates that the options are either to display as a truncated power series, or from the greatest power to the least; is there any way to have it display the literal order provided (when unambiguous)?
e.g. if the input is 3*x*x^3 + 2*x^5*x^(-3) - 2*x*x^2
, the output would be 3*x^4 + 2*x^2 - 2*x^3
.
I understand that there would be ambiguity in the case where two of the terms had the same power, but I was curious to know if there was any way to achieve this, at least for unambiguous cases? Personally, I would be happy to simply have all terms display in the same order, even if they have the same power (i.e. no simplification via +
).
Alternatively, is there any way to have Maxima treat x^0
as a polynomial term when ordering, vs. pushing the constant to the start / end of the expression?