This code should calculate dates of astronomical events. Even though I used the same calculations as the textbook, the answers keep coming out different. I suspect problems with floating points? I might try starting from the geometry and going step-by-step.
Astronomical events are one of:
- Vernal equinox (sun at 0 degrees)
- Summer solstice (.. 90 degrees)
- Autumnal equinox (... 180 degrees)
- Winter solstice (... 270 degrees)