Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Do you mean something like this?

sage: S = PolynomialRing(QQ, ['a','b','c'])
sage: p = S("a+a^2*b+c^3")
sage: p.dict()
{(0, 0, 3): 1, (1, 0, 0): 1, (2, 1, 0): 1}

See the multivariate polynomial generic documentation for a lot more on these objects.