Debian Codegraph @

examples/5gp-maxoccur-Rel-i

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