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

When working with spin, I've been using the m_values method in the spin module, for a given j, it returns the number of possible spin values and a list of them, so

In [1]: from sympy.physics.quantum.spin import m_values

In [2]: m_values(1)
Out[2]: (3, [1, 0, -1])

In [3]: m_values(S(3)/2)
Out[3]: (4, [3/2, 1/2, -1/2, -3/2])

When you call it, you can do something like:
size, mvals = m_values(j)
Then you can either iterate over the size variable or the m values directly.

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