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