Debian Codegraph @

examples/11gp-Rel-i

raw
1 #Example: "11gp-Rel-i" . . . based on: examples/11gp
2 #(equivalent to "11gp-i" example but uses `Relators' option)
3 #vars: F, rels, procId;
4 #options: OutputLevel, ClassBound, OutputFile
5 F := FreeGroup("a", "b", "c");
6 rels := ["[b, a, a, b, c]^11", "[a, b, b, a, b, c]^11", "(a * b)^11"];
7 procId := PqStart(F : Prime := 11, Relators := rels);;
8 #comment: set a different `ClassBound' by supplying <ClassBound>
9 #comment: also set a different print level by supplying <OutputLevel>
10 #sub <ClassBound> for <7> if set and ok
11 PqPcPresentation(procId : ClassBound := 7,
12 #sub <OutputLevel> for <1> if set and ok
13 OutputLevel := 1);;
14 #comment: save the presentation to a different file by supplying <OutputFile>
15 #sub <OutputFile> for <ANUPQData.outfile> if set and ok
16 PqSavePcPresentation(procId, ANUPQData.outfile);;