Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
sage: R.<x> = ZZ[]
sage: f = R.random_element(); f
-10*x^5 + 2*x^4 + 6*x^3 + x^2 + x + 4
sage: f.list()
[4, 1, 1, 6, 2, -10]

or

sage: list(f)
[4, 1, 1, 6, 2, -10]

But maybe you meant:

sage: R.<x> = ZZ[]
sage: f = R.random_element(); f
-10*x^5 + 2*x^4 + 6*x^3 + x^2 + x + 4
sage: f.list()
[4, 1, 1, 6, 2, -10]

or

sage: list(f)
[4, 1, 1, 6, 2, -10]