Status: Accepted
Owner: ----
CC: [email protected],  [email protected]
Labels: Type-Defect Priority-Medium Mechanics

New issue 2836 by [email protected]: multiple iterations through ReferenceFrame instances return empty list
http://code.google.com/p/sympy/issues/detail?id=2836

When resolving a Vector instance into it's components in some frame, or creating a Vector by multiplying a sympy expression by each of the unit vectors of some frame, it is convenient to use a for loop or a list comprehension. However, when iterating more than once through the unit vectors of a ReferenceFrame, an empty list results.

from sympy.physics.mechanics import ReferenceFrame
l = [1, 2, 3]
U = ReferenceFrame('U')
zip(l, U)
[(1, U.x), (2, U.y), (3, U.z)]
zip(l, U)
[]

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