Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I have this hamiltonian

[tex] K = \frac{1}{2}(P_1^2 + P_2^2) + P_1 Q_2 - P_2 Q_1 - (\frac{1-\mu}{R_1}+\frac{\mu}{R_2})[/tex]

(see this link if there is any latex problem)

with non separable variables.

I am looking for a symplectic algorithm (runge kutta would be good) to solve the correspondant first order equations, but I can't find it on the internet.

moreover it seems difficult and I don't understand enough what is a symplectic algorithm to code do it by myself..

thx a lot.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Symplectic algorithm

**Physics Forums | Science Articles, Homework Help, Discussion**