I need to output a multivariate Laurent polynomial in a certain way.
I have a polynomial stored in L in 2 variables x,y. I would need an output something like this:
y x^(-2) + 4 y^(-1) x^3 - 4y^(-1) x^(-2)
or even better if it would be grouped by the first (or 2nd) variable:
(y - 4y^(-1)) x^(-2) + 4 y^(-1) x^3
I am manipulating some results and I need to output a large amount of polynomials in a line-by-line fashion.