E-Code

Chemical equilibrium: N2O4 <-> 2NO2 — a TI-84 Plus CE program

By E-Code · updated

EQUIL is a TI-BASIC program for the TI-84 Plus CE. Van't Hoff shift of the equilibrium constant with temperature, then the degree of dissociation, mole fractions and standard Gibbs energy at a total pressure.

What it asks for and what it shows

It asks for 5 values at its prompts. In the example below it shows K T2, ALPHA, Y NO2, Y N2O4, DG KJ.

Example run

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

StepValue
You enter
Input 10.148
Input 2298.15
Input 357.2
Input 4350
Input 51
The screen shows
K T2=4.516502358
ALPHA=0.728233218
Y NO2=0.84274878
Y N2O4=0.15725122
DG KJ=-4.387610583

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 38 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