"Source: Text/Algebra/AlgMat.text";
"Line: 2375";
"Date: Wed Sep 19 23:00:01 2018";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Algebra/AlgMat.text, line: 2375
// Example: H90E9 ()
print "Example: H90E9";
ei := GetEchoInput();
SetEchoInput(true);
M := MatrixAlgebra(Rationals(),2);
x := M![0,1,-2,0];
y := M![0,3,-6,0];
CommonEigenspaces([x,y]);
Diagonalisation(sub<M|x,y>);                              
SetEchoInput(ei);
