| 1 | initial version |
Like this:
sage: G = WeylCharacterRing(['A',2])
sage: p = G(1,0,0)*G(1,1,0)
sage: p.monomials()
[A2(2,1,0), A2(1,1,1)]
sage: p.coefficients()
[1, 1]
See also:
sage: list(p)
[((2, 1, 0), 1), ((1, 1, 1), 1)]
sage: dict(p)
{(2, 1, 0): 1, (1, 1, 1): 1}
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.