of motion of the system using Lagrangian and Hamiltonian equation were obtained. The
equation of motion represented by a second-order differential equation from the three
generalized coordinate were used. The potential energy equal to zero when the system is in
its equilibrium position. The generalized coordinate that being used were the angle of the
first pendulum θ_1, the angle of the second pendulum θ_2, and the increase in the length of …