1 | initial version |
I use the following:
sage: x = SR.var("x", 10)
sage: sage: p = sum(a[i]*x^i for i in range(10)); p
a9*x^9 + a8*x^8 + a7*x^7 + a6*x^6 + a5*x^5 + a4*x^4 + a3*x^3 + a2*x^2 + a1*x + a0