Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Super fun thought experiment and project! Did you simulate n-body gravity, or just the Earth's? I couldn't tell from the project page or comments.

My son just asked me yesterday what would happen if the moon went away, and he hasn't even read any Stephenson yet.

Good question - another side to this though experiment! What happens if tides cease to exist? Could that cause enough change in the oceans or weather to pose a threat to life on earth? What if animals can't hunt at night anymore? What else do we rely on the moon for?



>Gravitational interactions between all bodies. I use an extraordinarily naive direct summation approach, which scales as O(N^2) and is horrible. A huge improvement would be to approximate forces from distant bodies with some kind of multipole expansion, and store masses in a balanced tree – this is known as a Barnes-Hut simulation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: