E-Code

Earth → Mars mission planner, step by step — a TI-89 Titanium program

By E-Code · updated

MARS89 is a TI-89 BASIC program for the TI-89 Titanium. Plans a trip to Mars in the textbook model (circular coplanar orbits, the Sun only, patched conics, impulsive burns) from the payload, engine Isp and the two parking orbits. Nine steps: orbital periods and the synodic period, the launch-window phasing, the Hohmann transfer by vis-viva, a 425-cell porkchop plot of Lambert solutions drawn on the graph screen, the escape burn with the Oberth effect, a Mars slingshot that costs no fuel, the capture burn, fuel and mass by the rocket equation, and the mission time and radio delay.

What it asks for and what it shows

It asks for 4 values at its prompts. In the example below it shows MARS89 · EARTH → MARS, pass 48 of 48, STEP 9 OF 9: TIME, MARS89 · SUMMARY.

Example run

One of its oracle test cases. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 120
Input 2450
Input 3300
Input 4400
The screen shows
TextMARS89 · EARTH → MARS
Textpass 48 of 48
TextSTEP 9 OF 9: TIME
TextMARS89 · SUMMARY

How it's checked

5 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 306 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium physics programs · All TI-89 Titanium programs