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]
2 | No.2 Revision |
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]