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

Quelle  5gp-maxoccur-Rel-i   Sprache: unbekannt

 
#Example: "5gp-maxoccur-Rel-i" . . . based on: GrpFP_2_pQuotient6
#Demonstrates usage of `PqSetMaximalOccurrences'.
#vars: F, rels, procId, class;
#options: OutputLevel, OutputFile
F := FreeGroup("a""b");
rels := ["a^5""b^5"];
procId := PqStart(F : Prime := 5, Relators := rels);
#comment: set a different print level by supplying <OutputLevel>
PqPcPresentation(procId : ClassBound := 1, 
#sub <OutputLevel> for <1> if set and ok
                          OutputLevel := 1);;
PqSetMaximalOccurrences(procId, [3, 2]);;
for class in [2 .. 6] do
  PqNextClass(procId);
od;
PqDisplayPcPresentation(procId);;
#comment: save the presentation to a different file by supplying <OutputFile>
#sub <OutputFile> for <ANUPQData.outfile> if set and ok
PqSavePcPresentation(procId, ANUPQData.outfile);;

Messung V0.5
C=94 H=99 G=96

[ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet)  ]