Simulate a spherical pendulum using a numerical integrator.
Spherical Pendulum describes how the equations of a spherical pendulum are derived. Starts with the dependencies between cartesian coordinates and the lagrangian coordinates
Case Of the Spherical Pendulum briefly derives the energies, lagrangian and movement equations and hosts a matlab example script.
Python ODE solver (nathantypanski.com) describes how to solve a second-order ODE with NumPy and SciPy.