[back] [prev] [next] [index] [root]

 


AbelianGroupIndex

Returns the index of a subgroup in a group.

Syntax:

a := AbelianGroupIndex(g, s);

group
  g  
group
  s  
subgroup of g
integer
  a  

See also:  AbelianSubGroup, AbelianGroupOrder

Description:

Returns the index a of s in g. s has to be a subgroup of g.


Example:


kash> g := AbelianGroupCreate([[0]]);
Group with relations:
[0]
kash> bas := AbelianGroupBasis(g);
[ [1] ]
kash> s := AbelianSubGroup(g, 2*bas[1]);
Group with relations:
[0]
kash> a := AbelianGroupIndex(g, s);
> 2


<- back[back] [prev] [next] [index] [root]