ApCoCoA-1:NCo.SetFp
From ApCoCoAWiki
NCo.SetFp
Set coefficient field to a finite field.
Syntax
NCo.SetFp() NCo.SetFp(Prime:INT)
Description
Note that the default coefficient field is rational numbers Q, i.e. RAT in CoCoAL. The fuNCotion has 0 or 1 parameter. The coefficient field is set to F2=Z/(2) if no parameter is given, i.e. via the first fuNCotion.
@param Prime: a prime number. The coefficient field is set to F_{Prime}=Z/(Prime).
Example
NCo.RingEnv(); Coefficient ring : Q ------------------------------- NCo.SetFp(); NCo.RingEnv(); Coefficient ring : Fp = Z/(2) ------------------------------- NCo.SetFp(3); NCo.RingEnv(); Coefficient ring : Fp = Z/(3) -------------------------------
See also