# Simulating a Test Particle in a Kerr Spacetime $(M,\mathcal{O}, \mathcal{A},\nabla^{L.C.})$

The equations of motion for a test particle in a Kerr spacetime $(M,\mathcal{O}, \mathcal{A},\nabla^{L.C.})$ are dictated by four degrees of freedom (i.e. invariant mass $m$ in $p^\mu g_{\mu\nu}p^{\nu}=-m^2,$ the energy $E$, the Carter constant $Q,$ and the orbital angular momentum $L_z=-p_{\phi}$ in the spin direction). On the wikipedia page for the Kerr metric, there is a simulation on the right-hand side of the trajectory equations section (see simulation here). By any chance, does anyone know of such a program (for Python) that I can use to simulate this, as shown in the aforementioned program implementation?

Before answering, please see our policy on resource recommendation questions. Please write substantial answers that detail the style, content, and prerequisites of the book, paper or other resource. Explain the nature of the resource so that readers can decide which one is best suited for them rather than relying on the opinions of others. Answers containing only a reference to a book or paper will be removed!