CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
#Example: "5gp-SP-d-Rel-i" . . . based on: isom/5gp_d
#vars: F, rels, procId;
#options: OutputLevel, ClassBound, StandardPresentationFile
F := FreeGroup("a", "b");
rels := ["a^25", "[b, a, a, a, b]", "[b, a, b, b, b]",
         "[b, a, b, a]", "b^5 * [a, b, a]^-1"];
procId := PqStart(F : Prime := 5, Relators := rels);
#comment: set a different print level by supplying <OutputLevel>
#add <OutputLevel> for <value> if set and ok
#PqSetOutputLevel(procId, value);;
PqSPComputePcpAndPCover(procId : ClassBound := 2);;
#comment: set a different `ClassBound' by supplying <ClassBound>
#comment: also save the presentation to a file by supplying <StandardPresentationFile>
PqSPStandardPresentation(procId, [ [[1,0,0,1],
                                    [0,1,0,0]],

                                   [[1,0,0,0],
                                    [0,1,0,1]],

                                   [[1,3,0,0],
                                    [0,1,0,0]],

                                   [[1,3,0,0],
                                    [0,4,0,0]],

                                   [[1,2,0,0],
                                    [0,3,0,0]],

                                   [[4,0,0,0],
                                    [0,1,0,0]],

                                   [[3,0,0,0],
                                    [0,1,0,0]] ]

                         : # options
#add <StandardPresentationFile> for <value> if set and ok
#                          StandardPresentationFile := value,
#sub <ClassBound> for <20> if set
                           ClassBound := 20,
                           PcgsAutomorphisms);;