pow(*,1./7.)

I was reading through some code (this file from the REBOUND N-body simulator) when I came across this function: and I got very curious as to how it worked, and why one would need it and mostly about whether it would generalize to arbitrary values of base and exponent. We see that we have an …

Advertisements

Computing orbits (1)

I want to simulate the orbits of planets and moons in our solar-system. They will form a carousel of gravitational bodies that my little spaceships will lift-off from, orbit around, and slingshot¬†past, on their imaginary journeys of adventure and derring-do. The wikipedia article on orbit modeling is a nice¬†introduction to some of the concepts involved. …