"Source: Text/Algebra/AlgMat.text";
"Line: 2441";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Algebra/AlgMat.text, line: 2441
// Example: H92E9 ()
print "Example: H92E9";
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);
