E-Code

Cramer's rule with every determinant — a TI-89 Titanium program

By E-Code · updated

CRAMER89 is a TI-89 BASIC program for the TI-89 Titanium. Type a square coefficient matrix and the right side: D, each Dᵢ (column i replaced by the right side) and xᵢ = Dᵢ/D, all exact.

What it asks for and what it shows

It asks for 2 values at its prompts. In the example below it shows D, D1, X1, D2, X2.

Example run

One of its oracle test cases: “2x2”. 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][1,3]]
Input 2{3,5}
The screen shows
D=5
D1=4
X1=4/5
D2=7
X2=7/5

How it's checked

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

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium math programs · All TI-89 Titanium programs