Simulation the transient behaviour of a simple pendulum and creation of an animation of it's motion.
Objective: Aim: Write a program to simulate the transient behaviour of a simple pendulum and to create an animation of it's motion. Given: `(d^2theta)/dt^2+b/m(d theta)/dt+g/l sintheta=0` g = gravity in m/s2 = 9.81 m/s2, L = length of the pendulum in m =1 m, m = mass of the ball in kg =1 kg, b=damping coefficient=0.05 Program:…