Symplectic integrators

In DifferentialEquations do the symplectic integrators require separable Hamiltonians? I’ve tried using a couple algorithms like Yoshida6 or KahanLi6 with a non-separable system and haven’t gotten good results when comparing them to just integrating the equations of motion from Hamilton’s equations.

They don’t necessarily require separable, but there are limitations mentioned in:,-Hamiltonian,-and-2nd-Order-ODE-Solvers-1

FWIW, symplectic integrators only have an advantage in long time integrations.

1 Like

Got it, thanks for pointing out those limitations.