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

 


FFPrimitiveElt

Returns a primitive element of a finite field.

Syntax:

w := FFPrimitiveElt(F);

finite field element
  w  
finite field
  F  

See also:  FFElt, FFGenerator

Description:

For a finite field FF_q (q=p^d a prime power) the function returns a generator omega of FF_q^\times.


Example:


kash> F25 := FF(5, 2);
Finite field of size 5^2
kash> w := FFPrimitiveElt(F25);
w
kash> w + w;
w^7
kash> w^0;
1
kash> w^-1;
> w^23


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