Three body problem

Just a simple script to compute the trajectory of three bodies under their reciprocal gravitational influence.

Vous suivez désormais cette soumission

This simple script was inspired by one of the Feynman lecture about Newton's law of dynamics. The aim is to show that just with the laws of motion and a basic numerical method is possible to find an approximate solution of a tremendously complex problem.
The theory can be found in the lecture:
Newton’s Laws of Dynamics
9–6 Numerical solution of the equations

Citation pour cette source

andrea (2026). Three body problem (https://fr.mathworks.com/matlabcentral/fileexchange/96932-three-body-problem), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.2

The 2D version also implements the the Verlet algorithm.

1.0.1

bug fixed

1.0.0