Simulation, Physics, Numerical Methods, Classical Mechanics, Computation.
double_pendulum(m1,m2,l1,l2,theta1,theta2,theta1_velocity,theta2_velocity,g,time_step,time_span): theta1_list = [theta1] theta2_list = [theta2] for t in time_span: theta1, theta1_velocity = theta1_update(m1,m2,l1,l2,theta1,theta2,theta1_velocity,theta2_velocity,g,time_step) theta2, theta2_velocity