Hi Alastair,

On 10 Jul., 23:14, Alastair Irving <[email protected]>
wrote:
> ...
> Secondly, I've installed the Gap database package but haven't managed to
> find  much documentation for it so don't really know what I'm doing.  In
> particular how can I construct all the groups of a given order using the
> database?

For example, accessing one group from the Small Groups database:

sage: G = gap.SmallGroup(8,3)  # the dihedral group, IIRC
sage: a,b,c = G.GeneratorsOfGroup()
sage: a,b,c
(f1, f2, f3)
sage: a*b*a
f2*f3
sage: a*b*a==b*c
True

And *all* groups of order 8:
sage: L8 = [gap.SmallGroup(8,n) for n in
range(1,gap.NumberSmallGroups(8)+1)]
sage: [X.IdGroup() for X in L8]
[[ 8, 1 ], [ 8, 2 ], [ 8, 3 ], [ 8, 4 ], [ 8, 5 ]]

Cheers,
Simon

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to