Question: Eigenvector output flipping

I have a problem with the order  of the Eigenvalues and Vectors flipping. It is a bit random. I only found it trying to understand why a procedure sometimes rotated a conic one way and  then the other. This a really causing a quite a problem, I have only tried this in Maple 2024 so far. I have included screen shots to prove the effect.

restart

 

with(LinearAlgebra):

 

M:=Matrix([[0,1],[1,0]]);

a,b:=Eigenvectors(M)  ;#click here and press enter again possible a 4 times, output can filp

 

Matrix(2, 2, {(1, 1) = 0, (1, 2) = 1, (2, 1) = 1, (2, 2) = 0})

 

Vector[column](%id = 36893491125752073860), Matrix(%id = 36893491125752073980)

(1)

a

Vector(2, {(1) = 1, (2) = -1})

(2)

b

Matrix(2, 2, {(1, 1) = 1, (1, 2) = -1, (2, 1) = 1, (2, 2) = 1})

(3)

 

 

Download 2024-03-21_Q_Eigenvector_output_flipping.mw

Please Wait...