Orbital Choreography of same-weight planets
Sub-space of the n-body problem where the goal is to find trajectories where planets of the same weight follow eachother.
Examples of choreographies (from this paper):
More on n-body choreographies here
This implemetation leverage JAX to perform gradient descent. Starting from random shapes the Action ( integral of the lagragian IE : kinetic energy - potential energy over the trajectory) is minimized. Minima of the action represents solutions of the problem. The trajectories are built in a trigonometrical polynomial space :
Here is an example of the optimization process.