Simple pendulum using lsode
Objective: As we knew that simple pendulum equation of motion is of 2nd order ordinary differential equation, we need to solve this equation of motion to get the behaviour of a simple pendulum with respect to time. But in the built solver of octave/ Matlab doesn\'t solve 2nd order ODE. For that, we need to make an user-defined function.…