Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpMult NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad GeneratorExp BinOpMult Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Dict NameLoad NameLoad BinOpDiv BinOpMult NameLoad NameLoad NameLoad BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad NameLoad Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult BinOpMult NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr BinOpMult BinOpMult NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Num NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Num NameLoad Print Call AttributeLoad Str attr NameLoad Print Call AttributeLoad Str attr NameLoad
N/A N/A Exercise 5.4 from Kane 1985. __future__ division sympy.physics.mechanics ReferenceFrame Point sympy.physics.mechanics cross dot sympy integrate simplify symbols integrate sympy sin cos pi calc_inertia_vec N/A N/A rho p n_a N iv N/A N/A N/A integrand N/A rho N/A cross p N/A cross n_a p N/A N/A sum N/A N/A N/A simplify N/A integrate N/A dot integrand n iv n N/A n N N/A N/A N/A a b L l m h N/A symbols a b L l m h real True nonnegative True N/A theta N/A symbols theta real True N/A h_theta_val N/A h theta N/A N/A b l L N/A N/A N/A 2 pi l L N/A density N/A m L N/A N N/A ReferenceFrame N N/A pO N/A Point O N/A pP N/A N/A pO locatenew P N/A N/A N/A h N/A N x N/A N/A a N/A cos theta N/A N y N/A N/A a N/A sin theta N/A N z N/A I_1 N/A calc_inertia_vec density N/A N/A N/A N/A pP pos_from pO subs h_theta_val N/A N x N N/A l 0 L N/A I_2 N/A calc_inertia_vec density N/A N/A N/A N/A pP pos_from pO subs h_theta_val N/A N y N N/A l 0 L N/A N/A N/A I_1 = {0} format I_1 N/A N/A N/A I_2 = {0} format I_2