That'll work.  Thanks very much.

On Oct 17, 11:10 am, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> Maybe there's an easier built-in way, if so I'd like to know it too,
> but you could do:
>
> [x^q[1]*q[0] for q in p.coefficients(x)]
>
> as a stop-gap.
>
> -M. Hampton
>
> On Oct 17, 11:59 am, Neal <[EMAIL PROTECTED]> wrote:
>
> > Hi Everyone,
>
> > I'm trying to get SAGE to give me a list of the monomials in a
> > multivariate symbolic expression.
>
> > For example, if I have
>
> > p = x*y^(-4) - y^2*z
>
> > I'd like to get
>
> > [x*y^(-4), -y^2*z].
>
> > I know this functionality is available for multivariate polynomial
> > rings, but I was wondering if it were available for symbolic
> > expressions as well.  I don't really care what order the monomials
> > come in, I just need some way to iterate over them.
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to