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

 


AbelianGroupIsSub

Tests whether s is a subgroup of g.

Syntax:

test := AbelianGroupIsSub(s, g);

groups
  g, s  
boolean
  test  

See also:  AbelianSubGroup

Description:

Returns true iff the group s is a subgroup of g and false otherwise.


Example:


kash> g := AbelianGroupCreate([[0,1,2],[5,6,0],[0,4,5]]);
Group with relations:
[0 1 2]
[5 6 0]
[0 4 5]
kash> s1 := AbelianSubGroup(g, [1,0,0]);
Group with relations:
[5]
kash> s2 := AbelianSubGroup(g, [[0,1,0], [0,0,5]]);
Group with relations:
[1 1]
[0 3]
kash> AbelianGroupIsSub(s1, g);
true
kash> AbelianGroupIsSub(s1, s2);
> false


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