On Tuesday, January 24, 2017 at 4:09:05 AM UTC-8, Adam Gal wrote:
>
> Suppose b is an element of a group algebra. I want to get a list of the 
> coefficients of the elements in the support of b.
> There are two methods: b.support() which returns a list of the group 
> elements appearing in b, and b.coefficients() which returns a list of the 
> coefficients, but when you just print b you see that the list of 
> coefficients is not in the correct order! How do I match the coefficients 
> to the correct group element?
>

You can ask for b.terms() and split that in coefficients and group 
elements, or you can ask for list(b) which gives you a list of (group 
element, coefficient) tuples.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to