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

Quelle  Randomize.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

gap> START_TEST("Randomize.tst");
gap> ll := [1,2,3,4,5,6];
123456 ]
gap> v1 := Vector(IsPlistVectorRep, Rationals, ll);
<plist vector over Rationals of length 6>
gap> Randomize( v1 );
<plist vector over Rationals of length 6>
gap> Unpack( v1 );
[ -2/321, -401 ]
gap> Randomize( v1 );
<plist vector over Rationals of length 6>
gap> Unpack( v1 );
[ -1, -11/20, -21/2 ]
gap> v2 := Vector(GF(5), ll*One(GF(5)));
[ Z(5)^0, Z(5), Z(5)^3, Z(5)^20*Z(5), Z(5)^0 ]
gap> Randomize( v2 );
[ Z(5)^3, Z(5)^20*Z(5), Z(5)^2, Z(5)^30*Z(5) ]
gap> v2;
[ Z(5)^3, Z(5)^20*Z(5), Z(5)^2, Z(5)^30*Z(5) ]
gap> Randomize( v2 );
[ Z(5)^00*Z(5), Z(5)^3, Z(5), Z(5), Z(5) ]
gap> v2;
[ Z(5)^00*Z(5), Z(5)^3, Z(5), Z(5), Z(5) ]
gap> STOP_TEST( "Randomize.tst" );

[Dauer der Verarbeitung: 0.10 Sekunden, vorverarbeitet 2026-06-17]