E-Code

Uranium enrichment: SWU and feed — a TI-84 Plus CE program

By E-Code · updated

ENRICH is a TI-BASIC program for the TI-84 Plus CE. Feed and tails mass for a product assay from a feed and tails assay, separative work in SWU, and the feed and SWU needed per kilogram of product.

What it asks for and what it shows

It asks for 4 values at its prompts. In the example below it shows FEED KG, TAIL KG, SWU, SWU/KG, FEED/KG.

Example run

One of its oracle test cases: “4.5% LEU”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 14.5
Input 20.25
Input 30.711
Input 41000
The screen shows
FEED KG=9219.088937
TAIL KG=8219.088937
SWU=6871.112989
SWU/KG=6.871112989
FEED/KG=9.219088937

How it's checked

5 test cases, each checked against the textbook formula it uses. Replayed key by key on a virtual TI-84 Plus CE, they make 31 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