Cramer's rule with every determinant — a TI-89 Titanium program
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.
| Step | Value |
|---|---|
| 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
- Open the library in the TI-89 Titanium calculator and pick “Cramer's rule with every determinant” (CRAMER89).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Linear system, exact answers
- LU decomposition with pivoting (exact)
- Matrix inverse from a typed matrix
- LU decomposition of a typed matrix
- Linear system Ax = b from a typed matrix
All TI-89 Titanium math programs · All TI-89 Titanium programs