up previous next
NC.SetFp

Set coefficient to a finite field.
Syntax
          
NC.SetFp()
NC.SetFp(Prime:INT)

          

Description
Note that default coefficient field is the field of rational numbers Q, i.e. RAT in CoCoAL. The function has 0 or 1 parameter. The coefficient field is set to F_{2}=Z/(2) without parameter.

Example
NC.RingEnv();
Coefficient ring : Q

-------------------------------
NC.SetFp();
NC.RingEnv();
Coefficient ring : Fp = Z/(2)

-------------------------------
NC.SetFp(3);
NC.RingEnv();
Coefficient ring : Fp = Z/(3)

-------------------------------


See Also