E-Code

Limiting reagent for any number of reactants — a TI-89 Titanium program

By E-Code · updated

STOICH89 is a TI-89 BASIC program for the TI-89 Titanium. Type the reactants' coefficients, molar masses and grams as lists (two, three or more reactants): the limiting one, the theoretical yield of a product, and the grams of every reactant left over.

What it asks for and what it shows

It asks for 5 values at its prompts. In the example below it shows YIELD G, LEFT 1 G, LEFT 2 G, LIMITING: #2.

Example run

One of its oracle test cases: “2H2 + O2 -> 2H2O, O2 limiting”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1{2,1}
Input 2{2.016,31.998}
Input 3{10,64}
Input 42
Input 518.015
The screen shows
YIELD G=72.06450403
LEFT 1 G=1.935495968
LEFT 2 G=0
TextLIMITING: #2

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 22 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium chemistry programs · All TI-89 Titanium programs