Python, Physics, Pendulum, Numerical Methods.
function alpha. """ def __init__(self, omega_0 = 0, theta_0 = 10, eta=0.01, n_iter=10): self.omega_0 = omega_0 self.theta_0 = theta_0 self.eta = eta self.n_iter = n_iter def euler(self,alpha): """Implements Euler Method. Parameters ---------- alpha : acceleration function Returns ------- self :