E-Code

Air-standard Otto, Diesel, Brayton — a TI-84 Plus CE program

By E-Code · updated

AIRCYCLE is a TI-BASIC program for the TI-84 Plus CE. State temperatures, net work, thermal efficiency and mean effective pressure for the ideal engine cycles, with cold-air constants.

What it asks for and what it shows

It asks for 4 values at its prompts, after you pick option 1 from its menu. In the example below it shows T2 K, T3 K, T4 K, W KJ/KG, EFF, MEP KPA, P3 KPA.

Example run

One of its oracle test cases: “Otto, r = 8”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Menuoption 1
Input 1300
Input 2100
Input 38
Input 41800
The screen shows
T2 K=689.219013
T3 K=3197.929814
T4 K=1391.979801
W KJ/KG=1016.504493
EFF=0.5647247184
MEP KPA=1349.26762
P3 KPA=8527.812838

How it's checked

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

How E-Code checks every program

Run it or put it on your calculator

Related programs

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