Knowing how to integrate ordinary differential equations is a crucial skill in computational science. In this article, I show how to integrate the equations of motion of the driven harmonic oscillator with the leapfrog technique, in Python.
Knowing how to integrate ordinary differential equations is a crucial skill in computational science. In this article, I show how to integrate the equations of motion of the driven harmonic oscillator with the leapfrog technique, in Python.