pendulum problem
Objective: This ODE for equation of motion of a simple pendulum with damping is given as. `(d^2theta)/dt^2+b/m*(d theta)/dt+g/L*sintheta=0` In the above equation, g = gravity in m/s2, L = length of the pendulum in m, m = mass of the ball in kg, b=damping coefficient. taking these values as L=1 metre, m=1 kg, b=0.05. g=9.81 m/s2.…