# N-Body Gravity

*Module of the free GPU.js GPGPU course · 5 tasks*

Every particle pulls on every other: an O(n²) problem the GPU eats for breakfast.

## Tasks

1. [The Pull of One Star](https://gpu.rocks/learn/n-body-gravity-5de47751/1.md)
2. [Every Body Pulls on Every Body](https://gpu.rocks/learn/n-body-gravity-5de47751/2.md)
3. [Softening the Singularity](https://gpu.rocks/learn/n-body-gravity-5de47751/3.md)
4. [One Tick of the Clock](https://gpu.rocks/learn/n-body-gravity-5de47751/4.md)
5. [Put It Together: 128 Bodies](https://gpu.rocks/learn/n-body-gravity-5de47751/5.md)

---

Interactive version: https://gpu.rocks/learn/n-body-gravity-5de47751
