HP Forums
predicting closest approach between Earth and Mars - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: predicting closest approach between Earth and Mars (/thread-18882.html)



predicting closest approach between Earth and Mars - cdeaglejr - 09-26-2022 04:56 PM

This HP Prime program can be used to predict closest approach between the Earth and Mars. The software will interactively request user inputs for an initial calendar year and a search duration in days.

The code will calculate and print the calendar date, UTC time and the Earth-to-Mars distance in both astronomical units and kilometers for any minima found during the search.


RE: predicting closest approach between Earth and Mars - StephenG1CMZ - 09-26-2022 05:16 PM

Since there are rovers on Mars, it would also be interesting to see the distance in light-time.