Damped simple pendulum
Objective: This code produces animation which shows the behavior of a damped simple pendulum, where,L=length of the pendulum 1 m,m=mass of the ball 1 kg,b=damping coefficient, 0.05,g= gravity 9.81 m/s^2, Motion simulated within 0-20 sec, with initial condition of 0 angular displacement & 3 rad/s^2 angular velocity at time t=0.…