To write a program to simulate the transient behaviour of a simple pendulum and to create an animation of it's motion.
Objective: objective : To write a program that solves the following ODE. This ODE represents the equation of motion of a simple pendulum with damping. `(d^2theta)/dt^2 + b/m ((d theta)/dt) + g/l sintheta=0` procedure/solution : `(d^2theta)/dt^2 + b/m ((d theta)/dt) + g/l sintheta=0` in the above equtaion, g = gravity…