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

 


EltPowerMod

Computes a^ {pow} \bmod M for an algebraic element.

Syntax:

e := EltPowerMod(a, pow, M);

algebaric element
  e, a  
integer
   {pow}  
integer
  M  

Description:

no detailed description available yet


Example:


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

kash> a := Elt(o,[1,2,3,4,5,6]);
[1, 2, 3, 4, 5, 6]
kash> EltPowerMod(a, 10, 5);
> [1, 1, 1, 0, 2, 1]


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