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