simple pendulum simulation
Objective: OBJECTIVE: To write a program to solve the ordinary differential equation and to simulate the pendulum motion. The ODE is as follows: `(d^2theta)/(dt^2)+(b/m*(d*theta)/dt)+(g/L)sintheta=0` where g = gravity in m/s2 = 9.81m/s2 L = length of the pendulum in m = 1 metre m = mass of the ball in kg = 1kg b=damping coefficient…