Skip to content

Commit

Permalink
Update sympy/physics/mechanics/essential.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmars15 committed Nov 30, 2011
1 parent dec1ac7 commit 6639d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/physics/mechanics/essential.py
Expand Up @@ -916,7 +916,7 @@ def _rot(axis, angle):
wvec = thetad * amounts[1].express(parent).normalize() wvec = thetad * amounts[1].express(parent).normalize()
else: else:
try: try:
from sympy.polys.polyerrors import CoercionFailed,FlagError from sympy.polys.polyerrors import CoercionFailed
from sympy.physics.mechanics.functions import kinematic_equations from sympy.physics.mechanics.functions import kinematic_equations
q1, q2, q3 = amounts q1, q2, q3 = amounts
u1, u2, u3 = dynamicsymbols('u1, u2, u3') u1, u2, u3 = dynamicsymbols('u1, u2, u3')
Expand All @@ -928,7 +928,7 @@ def _rot(axis, angle):
u2 = expand(td[u2]) u2 = expand(td[u2])
u3 = expand(td[u3]) u3 = expand(td[u3])
wvec = u1 * self.x + u2 * self.y + u3 * self.z wvec = u1 * self.x + u2 * self.y + u3 * self.z
except (CoercionFailed,AssertionError): except (CoercionFailed, AssertionError):
wvec = self._w_diff_dcm(parent) wvec = self._w_diff_dcm(parent)
self._ang_vel_dict.update({parent: wvec}) self._ang_vel_dict.update({parent: wvec})
parent._ang_vel_dict.update({self: -wvec}) parent._ang_vel_dict.update({self: -wvec})
Expand Down

0 comments on commit 6639d07

Please sign in to comment.