Ask Your Question

Revision history [back]

Someone answered my question on the mailing list. https://groups.google.com/forum/#!topic/sage-support/okj9hs9cAAU

Someone answered my question on the mailing list. https://groups.google.com/forum/#!topic/sage-support/okj9hs9cAAUTo get access to each generator in a product you need to use the following:

F.<x,y>=FreeAlgebra(ZZ,2)
g=4+3*x^7*y^10*x^13
h=g._FreeAlgebraElement__monomial_coefficients
print h
print h.items()
print h.items()[1][0]._element_list

Source