Elastic pendulum analysis using Lagrange mechanics

Unknownpgr@gmail.com
Simulation time is not exactly the same as real time due to computational delay. You can see that the total mechanical energy does not preserved. It is because of the floating point error. The values used in the simulation are as follows. You can also modify the values below and run simulation with your custom system.