Simulation, Physics, Numerical Methods, Classical Mechanics, Computation.
= theta2_update(m1,m2,l1,l2,theta1,theta2,theta1_velocity,theta2_velocity,g,time_step) theta1_list.append(theta1) theta2_list.append(theta2) x1 = l1*np.sin(theta1_list) y1 = -l1*np.cos(theta1_list) x2 = l1*np.sin(theta1_list) + l2*np.sin(theta2_list) y2 = -l1*np.cos(theta1_list) -