The physics of nbody problems isn't something everyone can appreciate as mathematics, but as an animation there is no barrier to understanding and being amazed.
The nbody problem sounds dry and dusty. The problem is to work out the paths that nbodies follow under their mutual gravitational attraction. The problem of n=2, i.e. the two body problem, was worked out a long time ago and it's the approximation we use to work out the theoretical orbits of the planets.
For just two bodies we can work out exact solutions for the general case. The behaviour is fairly simple the two bodies rotate around their combined center of mass and this gives rise to the familiar stable elliptical orbits we see in, say, the solar system.
While working with two bodies is easy, extending the problem to even 3 bodies proves to be surprisingly difficult. So much so that we don't have exact solutions in the general case and we tend to have to rely on simulation or on perturbation theory. However, just because you can't find a general solution it doesn't mean that you can't find solutions in special cases. In 2000 a set of stable orbits for n bodies was discovered and since then people have been working towards a complete classification of these very special cases.
Yes these are possible gravitational orbits!
Seeing nbodies move in a stable orbit around each other looks a lot like a dance in progress and hence they are called choreographies. Now a new paper by Montaldi and Steckles gives a complete classification of the symmetries that such choreographies can have. Dan Gries has used this to create an interactive animation of some of the major types and it is fascinating to watch.
You really do need to see the animations in progress to appreciate the amazing symmetry in time and space.
What you have to keep in mind as you watch the animations is that these objects are moving under their own gravitation and they have to "balance" their mutual distances to produce a force in the direction that you see them move in. This is easier to understand in the simpler twobody systems. If this doesn't impress you, then consider the fact that you could get a set of stars or other bodies actually following these orbits. Do they exist anywhere?
The program is written in JavaScript using three Canvas objects stacked on top of one another to create the trails that slowly fade to almost black, read Dan Gries' account for the fine detail. The program doesn't work by simulating the gravitational mechanics but uses the periodic description of the obits in the form of a Fourier series. This is very similar to the way that a Fourier series is used to draw general objects in as explained in How To Draw Einstein's Face Parametrically.
D3.JS 5 Adds Promises 26/03/2018
There's a new version of D3.js, the JavaScript library for manipulating documents based on data. The new release adds support for promises instead of asynchronous callbacks to load data.

Interactive Examples On MDN 27/03/2018
If you have visited MDN web docs recently you may have noticed the addition of interactive examples. This is the result of an ongoing project that is now complete for JavaScript and CSS.
 More News 
