E-Code

Two-body orbit and Kepler's equation — a TI-84 Plus CE program

By E-Code · updated

ORBIT is a TI-BASIC program for the TI-84 Plus CE. From periapsis radius and speed: semi-major axis, eccentricity, period, apoapsis, then position and speed at a time after periapsis by solving Kepler's equation.

What it asks for and what it shows

It asks for 3 values at its prompts. In the example below it shows A KM, ECC, T MIN, RA KM, R(T) KM, NU DEG, V(T).

Example run

One of its oracle test cases: “e = .42, 2000 s”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 17000
Input 29
Input 32000
The screen shows
A KM=12120.73146
ECC=0.4224770987
T MIN=221.3364675
RA KM=17241.46293
R(T) KM=11045.84224
NU DEG=103.4886719
V(T)=6.267869804

How it's checked

6 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 42 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE physics programs · All TI-84 Plus CE programs