Simulation, Physics, Numerical Methods, Classical Mechanics, Computation.
[theta2] time_step = 20/300 time_span = np.linspace(0,20,300) x1,y1,x2,y2 = double_pendulum(m1,m2,l1,l2,theta1,theta2,theta1_velocity,theta2_velocity,g,time_step,time_span) Figure 5: Double pendulum simulation We’ve finally done it! We have successfully modeled a double pendulum, but now it’s time