package
0.0.0-20240608204450-43fedf753603
Repository: https://github.com/rugiserl/physics.git
Documentation: pkg.go.dev

# README

n-body simulation (optimised)

Famous simulation using Newton gravity formula $f_{a \to b} = G \frac {m_a m_b} {r^2} \overrightarrow{u_{ba}}$.

This version uses a quadtree to make approximations in the computations of forces, with the Barnes-Hut algorithm