E-Code

Matrix inverse from a typed matrix — a TI-89 Titanium program

By E-Code · updated

MINV89 is a TI-89 BASIC program for the TI-89 Titanium. Type a square matrix like [[4,7][2,6]]: its determinant and the exact inverse row by row, or SINGULAR when there is none.

What it asks for and what it shows

It asks for 1 value at its prompts. In the example below it shows DET, INVERSE:, R1, R2.

Example run

One of its oracle test cases: “2x2 [[4,7][2,6]]”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1[[4,7][2,6]]
The screen shows
DET=10
TextINVERSE:
R1={3/5 -7/10}
R2={-1/5 2/5}

How it's checked

7 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 44 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