A Quil sketch of the N-Body problem using the Barnes-Hut approximation algorihtm, which uses a quadtree to run at a complexity of n*log(n) instead of n^2.
LightTable - open core.clj
and press Ctrl Shift Enter
to evaluate the file.
Emacs - run cider, open core.clj
and press C-c C-k
to evaluate the file.
REPL - run (require 'quadgrav.core)
.
Copyright © 2018
Distributed under the GNU Public License either version 3.0 or any later version.