Difference between revisions of "ApCoCoA-1:NCo.SetFp"
From ApCoCoAWiki
(New page: <command> <title>NCo.SetFp</title> <short_description> Set coefficient field to a finite field. </short_description> <syntax> NCo.SetFp() NCo.SetFp(Prime:INT) </syntax> <description> Note ...) |
(No difference)
|
Revision as of 12:59, 30 April 2013
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