up previous next
NC.SetFp

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

          

Description
Note that the default coefficient field is rational numbers Q, i.e. RAT in CoCoAL. The function has 0 or 1 parameter. The coefficient field is set to F2=Z/(2) if no parameter is given, i.e. via the first function.

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