Seems like every couple years I end up writing a program to calculate planetary orbits. This time I chose to use Haskell.
astronomy
Plotting celestial objects with Hy and matplotlib
The theme of using Jupyter and Calysto Hy continue with this posting. This time I’m going to throw matplotlib into mix and see if I can make some neat looking graphs about planets and their trajectories.
Calculating planetary motions
Celestial bodies and their trajectories across the skies have always fascinated people. Sun, moon and stars follow very predictable paths and one can predict certain events with great accuracy. Many religious events have been tied to timing of some special event (Easter for example, Sunday after first full moon after vernal equinox). So no wonder people have long kept track of these and tried to predict when things are about to happen.