You can get the degree from Poly:

>>> for i in range(Poly(eq, t).degree() + 1):
...  print i, eq.coeff(t, i)
...
0 Ra(0)**2
1 2*Ra(0)*Ra(1)
2 2*Ra(0)*Ra(2) + Ra(1)**2
3 2*Ra(0)*Ra(3) + 2*Ra(1)*Ra(2)
4 2*Ra(0)*Ra(4) + 2*Ra(1)*Ra(3) + Ra(2)**2
5 2*Ra(0)*Ra(5) + 2*Ra(1)*Ra(4) + 2*Ra(2)*Ra(3)
6 2*Ra(0)*Ra(6) + 2*Ra(1)*Ra(5) + 2*Ra(2)*Ra(4) + Ra(3)**2
7 2*Ra(1)*Ra(6) + 2*Ra(2)*Ra(5) + 2*Ra(3)*Ra(4)
8 2*Ra(2)*Ra(6) + 2*Ra(3)*Ra(5) + Ra(4)**2
9 2*Ra(3)*Ra(6) + 2*Ra(4)*Ra(5)
10 2*Ra(4)*Ra(6) + Ra(5)**2
11 2*Ra(5)*Ra(6)
12 Ra(6)**2

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to