Characteristic of Matrix

This program takes as its data the dimensions and elements of a matrix and generates the factors of the characteristic equation.

Basic program (liberty basic) lbcem.bas

Test case;

 CHARACTERISTIC EQUATION OF A MATRIX

'KEY IN ORDER    3
KEY IN ELEMENTS AS INDICATED

A ( 1 , 1) = ?11
A ( 1 , 2) = ?6
A ( 1 , 3) = ?-2

A ( 2 , 1) = ?-2
A ( 2 , 2) = ?18
A ( 2 , 3) = ?1

A ( 3 , 1) = ?-12
A ( 3 , 2) = ?24
A ( 3 , 3) = ?13

COEFFICIENTS ARE:

P(1) = 42
P(2) = -539
P(3) = 2058