Comment #10 on issue 2723 by [email protected]: What should summation() do with non-integer limits?
http://code.google.com/p/sympy/issues/detail?id=2723

To comment 7 and 8:
m_values is nice, if I want to use the list of possible spin states and do something with. I could create a special sum just for spin states but I hope that the general summation works exactly as mattpap described it in (8):

summation(f(k), (k, a, b) as f(a) + f(a + 1) + ... + f(a + n) where n = floor(b - a)

Intuitively I would expect this function to raise an error if (b-a) is not an Integer or alternatively stop when (a + n) > b which is what WolframAlpha does.

To 9: My original question was about the summation of -1/2, 1/2, 3/2,... so definitely with a step of 1. I have seen other steps in very general definitions like: S = sum over all f(x_i) with x_i where the individual x_i are taken from the set G. Imho this is too general here.

--
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.

Reply via email to