E-Code

Limiting reagent and theoretical yield — a TI-84 Plus CE program

By E-Code · updated

LIMREAG is a TI-BASIC program for the TI-84 Plus CE. For aA + bB → cC from the grams and molar masses: moles of each reactant, which one is limiting, the theoretical yield in grams, the excess left over, and the percent yield if you give the actual yield.

What it asks for and what it shows

It asks for 9 values at its prompts. In the example below it shows MOL A, MOL B, YIELD G, LEFT G, % YIELD, LIMITING: B.

Example run

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

StepValue
You enter
Input 12
Input 21
Input 32
Input 42.016
Input 510
Input 631.998
Input 764
Input 818.015
Input 965
The screen shows
MOL A=4.96031746
MOL B=2.000125008
YIELD G=72.06450403
LEFT G=1.935495968
% YIELD=90.19697127
TextLIMITING: B

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 40 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE chemistry programs · All TI-84 Plus CE programs