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

 


EltNumberReduce

Returns a canonical representative modulo an integer or rational.

Syntax:

b := EltNumberReduce(a,m);

integer or rational number
  m  
algebraic element
  a  
algebraic element
  b  

Description:

Returns a canonical representation of an algebraic element modulo an integer or a rational.


Example:


kash> o := OrderMaximal(Order(Z,6,2));
Generating polynomial: x^6 - 2
Discriminant: 1492992 

kash> elt := Elt(o,[214124,2144,3245,3252354545,436436436436,564643544365]);
[214124, 2144, 3245, 3252354545, 436436436436, 564643544365]
kash> b := EltNumberReduce(elt,2);
> [0, 0, 1, 1, 0, 1]


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