E-Code

Polytropic process, ideal gas — a TI-84 Plus CE program

By E-Code · updated

POLYTROP is a TI-BASIC program for the TI-84 Plus CE. Any polytropic exponent (n=1 isothermal, n=k adiabatic): end state, boundary work, heat, internal energy change and entropy change.

What it asks for and what it shows

It asks for 7 values at its prompts. In the example below it shows T2 K, V1 M3, V2 M3, W KJ, Q KJ, DU KJ, DS KJ/K.

Example run

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

StepValue
You enter
Input 12
Input 2300
Input 3100
Input 4600
Input 51.3
Input 60.287
Input 70.7175
The screen shows
T2 K=453.6225339
V1 M3=1.722
V2 M3=0.4339655574
W KJ=-293.9311149
Q KJ=-73.48277872
DU KJ=220.4483361
DS KJ/K=-0.1977826799

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 30 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