Debian Codegraph @

examples/Pq-ni

raw
1 #Example: "Pq-ni" . . . based on manual example illustrating `Pq' usage
2 #(demonstrates the alternative ways of passing options non-interactively)
3 #vars: F, a, b, R, H, rels;
4 #options:
5 F := FreeGroup("a", "b"); a := F.1; b := F.2;
6 rels := [ "a^25", "[b, a, a]", "b^5" ];
7 R := PqGAPRelators(F, rels);
8 H := F / R;
9 ## This demonstrates how the options may be passed as a record argument
10 Pq( H, rec( Prime := 5, ClassBound := 5, Metabelian := true ) );
11 ## This demonstrates how the options may be passed as additional arguments
12 Pq( H, "Prime", 5, "ClassBound", 5, "Metabelian" );