Physics / Astronomy
N-body problem
Gravitating many-body systems: from the Solar System to choreographies.

What happens
Many bodies pulling on each other by gravity alone: a binary, a star with planets, the famous figure-eight choreography, a random cluster or two colliding galaxies. Watch orbits trace their trails while the energy and momentum charts stay flat, the integrator's oath. Switch presets and let the cluster boil.
Equations used in the module
Equations a_i = G Σ_(j≠i) m_j (r_j − r_i)/(r_ij² + ε²)^(3/2) E = ½Σ m_i v_i² − G Σ_(i<j) m_i m_j/√(r_ij² + ε²) r_i = (x_i, y_i, z_i), v_i = (v_xi, v_yi, v_zi)


