Simulation, Physics, Numerical Methods, Classical Mechanics, Computation.
angle with angular velocity return theta, theta_velocity g = 9.8 #m/s^2 l = 1.0 #m theta = [np.radians(90)] #theta_0 theta_velocity = 0 #Start with 0 velocity time_step = 20/300 #Define a time step time_span = np.linspace(0,20,300) #simulate for 20s split into 300 time intervals for t in time_span: