Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: add some non-trivial examples for how to use GAP.jl #838

Closed
fingolfin opened this issue Nov 2, 2022 · 2 comments · Fixed by #839
Closed

Documentation: add some non-trivial examples for how to use GAP.jl #838

fingolfin opened this issue Nov 2, 2022 · 2 comments · Fixed by #839

Comments

@fingolfin
Copy link
Member

That is, perhaps show some basic GAP code, then show how the "equivalent" Julia code would like.

E.g. today I was asked how to translate this GAP code (it uses the LINS package by Friedrich Robers -- for an example in the manual, it of course shouldn't use anything not shipped with GAP by default):

f := FreeGroup("a", "b");
g := f / [f.1^2, f.2^l, (f.1*f.2)^m];
a := g.1;
b := g.2;
gr := LowIndexNormalSubgroupsSearchForAll(g, N);
ns := ComputedNormalSubgroups(gr);

I proposed this translation:

f = GAP.Globals.FreeGroup(g"a", g"b")
g = f / GapObj([f.:1^2, f.:2^l, (f.:1*f.:2)^m])
a = g.:1
b = g.:2
gr = GAP.Globals.LowIndexNormalSubgroupsSearchForAll(g, N)
ns = GAP.Globals.ComputedNormalSubgroups(gr)
@ThomasBreuer
Copy link
Member

What about the "Rubik's Cube" example at https://www.gap-system.org/Doc/Examples/rubik.html?
There is a translation to Julia using GAP.jl (by Reimer, if I remember well), as a Jupyter notebook.

@fingolfin
Copy link
Member Author

OK, sure, sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants