I get it, it was a toy, but if you're really interested look up adaptive step symplectic integrators.
I get it, it was a toy, but if you're really interested look up adaptive step symplectic integrators.