Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/tst/testinstall/MatrixObj/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 273 B image not shown  

Quelle  Eigenvalues.tst   Sprache: unbekannt

 
gap> mat := [[1,2,1],[1,0,1],[0,0,1]];
[ [ 1, 2, 1 ], [ 1, 0, 1 ], [ 0, 0, 1 ] ]
gap> Eigenvalues(Rationals,mat);
[ 2, 1, -1 ]
gap> matObj1 := NewMatrix(IsPlistMatrixRep,GF(5),3,mat*Z(5)^0);
<3x3-matrix over GF(5)>
gap> Eigenvalues(GF(5),matObj1);
[ Z(5)^2, Z(5)^0, Z(5) ]

[ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ]