try ratexpand.
you might arrange the variables differently by
using ratvars.
Fabrizio Caruso wrote:
> Dear Maxima forum
>
> I am looking for a command that collects all the terms
> of a polynomial w.r.t. a variable, i.e. it writes the polynomial
> as a sum of monomials with increasing/decreasing powers of
> a given variable.
> Is there one?
>