Comment #2 on issue 1714 by [email protected]: some sum problems
http://code.google.com/p/sympy/issues/detail?id=1714

This is out-of-date.  Currently,

In [1]: sum(2*f(k),(k,0,n))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/junk/src/sympy/bin/<ipython-input-1-9dc1d68975d7> in <module>()
----> 1 sum(2*f(k),(k,0,n))

TypeError: 'Mul' object is not iterable

In [2]: sum(f(k)+1,(k,0,n))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/junk/src/sympy/bin/<ipython-input-2-17f15c3c5020> in <module>()
----> 1 sum(f(k)+1,(k,0,n))

TypeError: 'Add' object is not iterable


Changing this would require overriding the default behavior of python's "sum()", which I think was something that was decided against. Use Sum() and it's functions for manipulation and evaluation of summations.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to