Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/fining/examples/gap/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 27.6.2023 mit Größe 349 B image not shown  

Quelle  projsp_randomeltsps.g   Sprache: unbekannt

 
#random element of (a given) type of a projective space
ps := PG(9,49);
Random(Lines(ps));
Random(Points(ps));
Random(Solids(ps));
Random(Hyperplanes(ps));
elts := ElementsOfIncidenceStructure(ps,6);
Random(elts);
Display(last);
RandomSubspace(ps,3);
Display(last);
RandomSubspace(ps,7);
Display(last);
RandomSubspace(ps);
RandomSubspace(ps);
quit;

[ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ]