Python, Physics, Pendulum, Numerical Methods.
= self.theta_0*np.pi/180.0 self.time_[1]= self.eta self.theta_[1] = self.theta_[0]+self.omega_0*self.eta +0.5* (self.eta**2)*alpha(self.theta_[0]) for i in range(self.n_iter-2): self.time_[i+2] = self.time_[i+1] + self.eta self.theta_[i+2] = 2.0*self.theta_[i+1] -self.theta_[i] +