| 1 |
#Example: "3gp-SP-2-Rel-i" . . . based on: isom/3gp.ex2 |
| 2 |
#vars: F, rels, procId; |
| 3 |
#options: OutputLevel, ClassBound, StandardPresentationFile |
| 4 |
F := FreeGroup("x", "y"); |
| 5 |
rels := ["(x * y * x)^3", "[y, x, x]"]; |
| 6 |
procId := PqStart(F : Prime := 3, Relators := rels);; |
| 7 |
#comment: set a different print level by supplying <OutputLevel> |
| 8 |
#add <OutputLevel> for <value> if set and ok |
| 9 |
#PqSetOutputLevel(procId, value);; |
| 10 |
PqSPComputePcpAndPCover(procId : ClassBound := 1);; |
| 11 |
#comment: set a different `ClassBound' by supplying <ClassBound> |
| 12 |
#comment: also save the presentation to a file by supplying <StandardPresentationFile> |
| 13 |
PqSPStandardPresentation(procId, [ [[2,0], |
| 14 |
[0,2]], |
| 15 |
|
| 16 |
[[0,2], |
| 17 |
[1,0]], |
| 18 |
|
| 19 |
[[1,2], |
| 20 |
[2,2]], |
| 21 |
|
| 22 |
[[1,0], |
| 23 |
[2,1]], |
| 24 |
|
| 25 |
[[2,0], |
| 26 |
[0,1]] ] |
| 27 |
|
| 28 |
: # options |
| 29 |
#add <StandardPresentationFile> for <value> if set and ok |
| 30 |
# StandardPresentationFile := value, |
| 31 |
#sub <ClassBound> for <9> if set |
| 32 |
ClassBound := 9, |
| 33 |
PcgsAutomorphisms);; |