extracting the monomials from a multivariable polynomial



On Jan 28, 2008 12:19 AM, S. Newhouse <sen1 at math.msu.edu> wrote:

>  Modifying your monomials(p,vars)  to monomials(p.listofvars(p))  seems to
> do exactly what I wanted.   It seems a bit strange that this is not a
> standard function in maxima.
>

Well, Maxima has a variety of ways of analyzing and reorganizing
polynomials, including rat (and ratvars), ratcoeff, coeff, factor (with
facexpand on or off), horner, etc.  I suppose 'monomials' or
'list_monomials' (analogous to list_nc_monomials) could easily be added to
the facexp package if it's generally useful.

            -s