Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad decorator_list Assign NameStore Num Assign NameStore Call NameLoad Str keyword NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore BinOpMult NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore BinOpDiv Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListComp Call NameLoad BinOpSub BinOpSub NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad AugAssignAdd NameStore ListComp Call NameLoad BinOpSub NameLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Index Num Print Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad NameLoad Print Call AttributeLoad Str attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Print Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Print Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad attr attr Print Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Print Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad attr attr
N/A N/A Exercise 7.12 from Kane 1985. __future__ division sympy solve symbols sympy.physics.mechanics ReferenceFrame Point sympy.physics.mechanics cross dot subdict N/A N/A d keylist N/A N/A N/A N/A dict N/A N/A k N/A d N/A k N/A k keylist N/A N/A alpha 10 N/A beta N/A symbols beta real True N/A N/A b1 b2 b3 N/A symbols b1 b2 b3 real True N/A N/A p1 p2 p3 N/A symbols p1 p2 p3 real True N/A N N/A ReferenceFrame N N/A pO N/A Point O N/A pS N/A N/A pO locatenew S N/A N/A 10 N/A N x N/A 5 N/A N z N/A pR N/A N/A pO locatenew R N/A N/A 10 N/A N x N/A 12 N/A N y N/A pQ N/A N/A pO locatenew Q N/A N/A 12 N/A N y N/A 10 N/A N z N/A pP N/A N/A pO locatenew P N/A N/A 4 N/A N x N/A 7 N/A N z N/A A N/A alpha N/A N/A N/A N/A pQ pos_from pP normalize N/A B N/A alpha N/A N/A N/A N/A pS pos_from pR normalize N/A R N/A A B N/A M N/A N/A cross N/A N/A pP pos_from pO A N/A cross N/A N/A pR pos_from pO B N/A Ms N/A N/A N/A dot R M R N/A dot R R N/A ps N/A N/A cross R M N/A dot R R N/A A_prime N/A beta N/A N/A N/A N/A pP pos_from pO normalize N/A B_prime N/A N/A N/A b1 N/A N x N/A b2 N/A N y N/A b3 N/A N z N/A pB_prime N/A N/A pO locatenew B' N/A N/A N/A p1 N/A N x N/A p2 N/A N y N/A p3 N/A N z N/A M_prime N/A cross N/A N/A pB_prime pos_from pO B_prime N/A eqs N/A N/A dot N/A N/A R A_prime B_prime n N/A n N N/A eqs N/A N/A dot N/A M M_prime n N/A n N N/A N/A N/A eqs append N/A dot N/A N/A pB_prime pos_from pO B_prime N/A soln N/A N/A solve eqs N/A beta b1 b2 b3 p1 p2 p3 dict True N/A 0 N/A N/A N/A A' = {0} format N/A N/A A_prime subs N/A subdict soln N/A beta N/A N/A N/A |A'| = {0} N format N/A N/A N/A soln N/A beta n N/A N/A N/A B' = {0} format N/A N/A B_prime subs N/A subdict soln N/A b1 b2 b3 N/A N/A N/A |B'| = {0} N format N/A N/A N/A N/A N/A N/A B_prime subs N/A subdict soln N/A b1 b2 b3 magnitude n N/A N/A N/A pB' = {0} format N/A N/A N/A N/A pB_prime pos_from pO subs N/A subdict soln N/A p1 p2 p3 N/A N/A N/A |pB'| = {0} m format N/A N/A N/A N/A N/A N/A N/A N/A pB_prime pos_from pO subs N/A subdict soln N/A p1 p2 p3 magnitude n