E-Code

Linear system solver (n equations) — a TI-84 Plus CE program

By E-Code · updated

LINSYS is a TI-BASIC program for the TI-84 Plus CE. Solves 2 to 6 linear equations in as many unknowns from typed rows {a1,...,an,b}; says NO SOLUTION or INFINITELY MANY (with the rank) instead of failing, and prints the residual as a check.

What it asks for and what it shows

It asks for 4 values at its prompts. In the example below it shows X1, X2, X3, RESID.

Example run

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

StepValue
You enter
Input 13
Input 2{2,1,⁻1,8}
Input 3{⁻3,⁻1,2,⁻11}
Input 4{⁻2,1,2,⁻3}
The screen shows
X1=2
X2=3
X3=-1
RESID=0

How it's checked

8 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 41 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

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