E-Code

Entropy generation, lost work — a TI-84 Plus CE program

By E-Code · updated

ENTGEN is a TI-BASIC program for the TI-84 Plus CE. Adiabatic mixing of two streams or heat transfer across a temperature gap: entropy generated and the work destroyed (Gouy-Stodola).

What it asks for and what it shows

It asks for 6 values at its prompts, after you pick option 1 from its menu. In the example below it shows T MIX K, SGEN, W LOST.

Example run

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

StepValue
You enter
Menuoption 1
Input 12
Input 2350
Input 33
Input 4300
Input 54.18
Input 6298
The screen shows
T MIX K=320
SGEN=0.06015540842
W LOST=17.92631171

How it's checked

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