[GAP Forum] GAP behaviour for large integers
Sanchez Garcia R.
R.Sanchez-Garcia at soton.ac.uk
Tue Mar 27 17:23:02 BST 2018
Thank you Max! The remapping works perfectly! That’s what I needed. You made it into the acknowledgments of the paper :-)
And apologies, in hindsight it was quite a simple solution I should have found myself…
Many thanks again,
Ruben
> Remap the permutations directly:
>
> gap> gens:=[(10000,20000),(30000,40000)];
> gap> mp := MovedPoints(gens);;
> gap> smallgens:=List(gens, g -> Permutation(g, mp));
> [ (1,2), (3,4) ]
>
> # perform orbit computation
> gap> small_orbs:=Orbits(Group(smallgens));
> [ [ 1, 2 ], [ 3, 4 ] ]
>
> # map back to the original numbers
> gap> orbs:=List(small_orbs, o->mp{o});
> [ [ 10000, 20000 ], [ 30000, 40000 ] ]
>
> Hope that helps,
> Max
More information about the Forum
mailing list