Comment #1 on issue 3543 by [email protected]: Infinite loop when doing
print() on summation containing summation
http://code.google.com/p/sympy/issues/detail?id=3543
Amendment to the above:
Even though I am able to do:
print(summation(t**i*Ra(i),(i,0,5)).doit())
and it does not produce an infinite loop, the problem with the above is
that it expands the binomial function too and the output is not so readable
as a result:
t**5*(-n*(n - 4)*(n - 3)*(n - 2)*(n - 1)*ival(0)/120 + n*(n - 4)*(n - 3)*(n
- 2)*(n - 1)*ival(1)/24 - n*(n - 4)*(n - 3)*(n - 2)*(n - 1)*ival(2)/12 +
n*(n - 4)*(n - 3)*(n - 2)*(n - 1)*ival(3)/12 - n*(n - 4)*(n - 3)*(n - 2)*(n
- 1)*ival(4)/24 + n*(n - 4)*(n - 3)*(n - 2)*(n - 1)*ival(5)/120) +
t**4*(n*(n - 3)*(n - 2)*(n - 1)*ival(0)/24 - n*(n - 3)*(n - 2)*(n -
1)*ival(1)/6 + n*(n - 3)*(n - 2)*(n - 1)*ival(2)/4 - n*(n - 3)*(n - 2)*(n -
1)*ival(3)/6 + n*(n - 3)*(n - 2)*(n - 1)*ival(4)/24) + t**3*(-n*(n - 2)*(n
- 1)*ival(0)/6 + n*(n - 2)*(n - 1)*ival(1)/2 - n*(n - 2)*(n - 1)*ival(2)/2
+ n*(n - 2)*(n - 1)*ival(3)/6) + t**2*(n*(n - 1)*ival(0)/2 - n*(n -
1)*ival(1) + n*(n - 1)*ival(2)/2) + t*(-n*ival(0) + n*ival(1)) + ival(0)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.