Simple Pendulum Animation Assignment using Python
Objective: # ODE Assignment problem import numpy as np import math import matplotlib.pyplot as plt from scipy.integrate import odeint # calling the function that returns dtheta_dt also the input arguments are given (the derivation was done to reduce the 2nd order ODE to 1st order and then solve ) def model(theta,t,b,g,l,m): theta1=theta[0]…