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

 


AbelianGroupBasis

Returns a basis of a finite abelian group.

Syntax:

L := AbelianGroupBasis(g [, exp]);

group
  g  
list
  L  
list of basis elements of g
boolean
  exp  

See also:  AbelianGroupMinNumberGenerators

Description:

Returns a list of basis elements of the group g. If the second (optional) parameter exp is true then the discrete exp is applied.


Example:

Compute the basis of a ray class group:

kash> O := OrderMaximal(Z, 2, 10);
Generating polynomial: x^2 - 10
Discriminant: 40 

kash> g := RayClassGroupToAbelianGroup(3*O, [1, 2]);
RayClassGroupToAbelianGroup(<3>, [ 1, 2 ])
Group with relations:
[4 0]
[0 2]
kash> l := AbelianGroupBasis(g);
[ [0 1], [1 0] ]
kash> l := AbelianGroupBasis(g, true);
> [ <2, [0, 1]>, <[1, -3]> ]


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