up previous next
Set coefficient field to a finite field.
NC.SetFp()
NC.SetFp(Prime:INT)
|
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.
- @param Prime: a prime number. The coefficient field is set to F_{Prime}=Z/(Prime).
NC.RingEnv();
Coefficient ring : Q
-------------------------------
NC.SetFp();
NC.RingEnv();
Coefficient ring : Fp = Z/(2)
-------------------------------
NC.SetFp(3);
NC.RingEnv();
Coefficient ring : Fp = Z/(3)
-------------------------------
|