Template:GAP ID

From Groupprops
Revision as of 18:17, 22 May 2012 by Vipul (talk | contribs)
Jump to: navigation, search

Group ID

This finite group has [[groups of order {{{1}}}|order {{{1}}}]] and has ID {{{2}}} among the groups of order {{{1}}} in GAP's SmallGroup library. It can thus be defined using GAP's SmallGroup function as:

SmallGroup({{{1}}},{{{2}}})

For instance, we can use the following assignment in GAP to create the group and name it G:

gap> G := SmallGroup({{{1}}},{{{2}}});

Conversely, to check whether a given group G is in fact the group we want, we can use GAP's IdGroup function:

IdGroup(G) = [{{{1}}},{{{2}}}]

or just do:

IdGroup(G)

to have GAP output the group ID, that we can then compare to what we want.