Solving 2-Body Problem with RK4 in JavaScript
I recently made a C++ program to simulate 3-body problems, which were able to recreate the famous figure-eight orbit. It used numerical approximation to solve Ordinary Differential Equations (ODEs) with the fourth-order Runge-Kutta method, also known as RK4. The program can handle N-body simulations too if you let it run long enough.