Three-body equations
Inspect the coupled-body equations, declared preparation and observer-relative readout.
Research guide • executable numerical comparison and research sources linked
Equations and executable comparison
The published environment module contains the conventional Newtonian comparison implemented in source/geometry/three-body.mjs and source/company-coupled-body-adapter.mjs. Its local Lagrangian is L = sum_i (m_i |v_i|^2 / 2) + sum_(i<j) G m_i m_j / |r_j-r_i|. The mutual force is F_ij = G m_i m_j (r_j-r_i) / |r_j-r_i|^3, with F_ji = -F_ij.
The implementation advances the initial-value state using fixed-step kick-drift-kick velocity Verlet. Default dimensionless parameters are G = 0.003, maximum step 0.005, three masses of 1 and three contact radii of 0.018. Pair forces evolve the positions and velocities; the square supplies the local reference context.
Declared initial conditions
The planar preparation uses positions 0.3 × [(0.97000436, -0.24308753, 0), (-0.97000436, 0.24308753, 0), (0, 0, 0)] and velocities 0.1 × [(0.466203685, 0.43236573, 0), (0.466203685, 0.43236573, 0), (-0.93240737, -0.86473146, 0)]. The source attributes this approximate figure-eight seed to Chenciner and Montgomery (2000), Figure 1, computed by Carles Simó.
The default noncoplanar preparation replaces the three z positions with [0.012, -0.008, -0.004] and z velocities with [0.006, -0.003, -0.003]. The module retains body identities and reports pair forces, energy, momentum and minimum separation. Contact and unresolved close approaches stop the step while retaining the prior state.
Observer context and source artifacts
The application-defined observer binding records O_r = T(S, M_o, F, H, R) for each body pair, including relative displacement, velocity and acceleration. Read the observer-measurement paper for the organising relation and inspect the published module for this particular numerical dynamics and observation implementation.
The linked JavaScript is the actual published environment module, with its force law, integrator, preparation and output contracts. The research paper and module identify the authored observer relation and the conventional dynamics comparison separately.