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

 


FFElt

Creates an element of a finite field.

Syntax:

a := FFElt(F, n);

finite field element
  a  
finite field
  F  
integer
  n  

See also:  FFPrimitiveElt, FFGenerator, FFEltToList

Description:

Embeds the integer n into a finite field FF_q.


Example:

Creation of a finite field element and some arithmetic:

kash> F5 := FF(5);
Finite field of size 5
kash> 1 + 4;
5
kash> a := FFElt(F5, 1) + 4;
> 0


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