MAD
: given a square matrix, returns
determinant, formal inverse, a list polynomial
and the characteristic polynomial. The list polynomial PA is a
matrix coefficient polynomail defined by the relation:
PCAR
: characteristic polynomial using det
JORDAN
: compute eigenvalues and eigenvectors (cf. infra)
JORDAN
returns 6 levels:
Examples:
6: 0 5: { { inf inf inf } { inf inf inf } { inf inf inf } } 4: {0 1 '3/2+i/2*V3' 1 '3/2-i/2*V3' 1 } 3: 'X^3-3*X^2+3*X' 2: 'X^3-3*X^2+3*X' 1: { :0: {1 1 1} :'3/2+i/2*V3': {1 '-1/2-i/2*V3' '-1/2+i/2*V3'} :'3/2-i/2*V3': {1 '-1/2+i/2*V3' '-1/2-i/2*V3'} }This means that A has 3 eigenvalues , and a basis of eigenvectors is:
2 idn
), we get:
6: 1 5: { { 1 0 } { 0 1 } } 4: {1 2} 3: 'X^2-2*X+1' 2: 'X-1' 1: { :1, Eigen: { 0 1 } :1, Eigen: { 1 0 } }The minimal polynomial is X-1, different from the characteristic polynomial (X-1)2=X2-2X+1.
{ { 1 A } { A 1 } }
MAD
, factor the characteristic
polynomial (e.g. by trying the FCTR
instruction of ALG48
)
before calling JORDAN
. If you have ALG48
installed, try this:
{ { 1 1 A } { 1 A 1 } { A 1 1 } } MAD FCTR JORDANNote that this example is solved by typing
JORDAN
directly but it may
fail in other situations.
6: -4 5: : { { '1/4' '1/4' '-1/4' } { '-3/4' '5/4' '-1/4' } { '-1/2' '1/2' '1/2' } } 4: { 2 2 1 1} 3: 'X^3-5*X^2+8*X-4' 2: 'X^3-5*X^2+8*X-4' 1: { :2, Char: { 2 2 1 } :2, Eigen:{ 1 1 0 } :1: { 0 1 1 } }This means that 2 has multiplicity 2, but the corresponding eigenspace is only 1-dimensional (spanned by (1,1,0) the last vector of the Jordan chain). The first vector (2,2,1) is only a characteristic vector, his image by (A-2I) is the eigenvector (1,1,0) .
VX
is set to X
, you can not diagonalize
the following matrix:
{ { 1 1 X } { 1 X 1 } { X 1 1 } }Workaround: make a change of variable, e.g.
'X=A' EXEC
.