Python, Physics, Pendulum, Numerical Methods.
(self.eta**2)*alpha(self.theta_[i+1]) return self Define Angular Acceleration Function def alpha(x): return -np.sin(x) Example 1: Euler Method time=ODESolver(omega_0 = 0, theta_0 = 10, eta=0.1, n_iter=300).euler(alpha).time_ theta=ODESolver(omega_0 = 0, theta_0 = 10, eta=0.1,