Python, Physics, Pendulum, Numerical Methods.
self.theta_[i] + 0.5*self.eta*(self.omega_[i]+self.omega_[i+1]) return self def verlet(self,alpha): """Implement Verlet Method. Parameters ---------- alpha : acceleration function Returns ------- self : object """ self.time_ = np.zeros(self.n_iter) self.theta_ = np.zeros(self.n_iter) self.theta_[0]