up previous next
Set coefficient to a finite field.
NC.SetFp()
NC.SetFp(Prime:INT)
|
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.
- @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)
-------------------------------
|