Simple orbital calculations in a haskell module
Get the universal gravitational constant
Calculate the semi major axis of an orbit given an apsis and periapsis (r1, r2)
Convert value of au (astronomical unit) to more general kilometres
Velocity at a given point (radius r) around object with mass (M) along with apsis and periapsis (r1, r2)
Calculate the orbital period of an object with mass (m) along with apsis and periapsis (r1, r2)
Calculate the escape velocity of an object given the mass of the central object (m) and distance from it's centre (r)
Calculate the orbital eccentricity of an object given the apsis and periapsis (r1, r2)
Calculate the inclination of an orbit given the Orbital Momentum Vector (h) and the z component of h (hz)
import OrbitCalculator
main = do print(semiMajorAxis 1203001 38340009)