A simple celestial mechanics package in golang
A struct which models a celestial body in the solar system. Mass in kg, state vector in cartesian coordinates (km-s).
func (body *Body) Update(other *Body, timestep float64)
Updates the state vector of a pair of Bodies based on gravitational forces for a single timestep.
Uses the JPL Horizons telnet server to get a mass and state vector for a celestial body. Includes a command line demo application.