|
|
|
|
|
by rom16384
4925 days ago
|
|
RK4 is indeed a popular and standard method. However for this particular equation or other equations with a conserved quantity a Symplectic integrator [1] should be used, as they are much better at keeping the numerical solution close to the real solution since they conserve the quantity of interest (energy, etc.). [1] https://en.wikipedia.org/wiki/Symplectic_integrator |
|
Especially the Leapfrog integrator seems cool:
http://en.wikipedia.org/wiki/Leapfrog_integration