Polytropic process, ideal gas — a TI-84 Plus CE program
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.
| Step | Value |
|---|---|
| You enter | |
| Input 1 | 2 |
| Input 2 | 300 |
| Input 3 | 100 |
| Input 4 | 600 |
| Input 5 | 1.3 |
| Input 6 | 0.287 |
| Input 7 | 0.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
- Open the library in the TI-84 Plus CE calculator and pick “Polytropic process, ideal gas” (POLYTROP).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Air-standard Otto, Diesel, Brayton
- Real gas: van der Waals, Redlich-Kwong
- Entropy generation, lost work
- Chemical equilibrium: N2O4 <-> 2NO2
- RC circuit charging transient
All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs