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 ...) |
|||
Line 5: | Line 5: | ||
</short_description> | </short_description> | ||
<syntax> | <syntax> | ||
− | NCo.SetFp( | + | NCo.SetFp([P:INT]) |
− | |||
</syntax> | </syntax> | ||
<description> | <description> | ||
− | Note that the default coefficient field is rational numbers | + | Note that the default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. This function has 0 or 1 parameter. The coefficient field is set to the binary field {0,1} if no parameter is given, i.e. via the first function NC.SetFp(), and is set to the finite field {0,1,...,P-1}. The coefficient field can be set to the field of rational numbers via the function <ref>NC.UnSetFp</ref>. |
<itemize> | <itemize> | ||
− | <item>@param <em> | + | <item>@param <em>P</em>: a prime.</item> |
</itemize> | </itemize> | ||
<example> | <example> | ||
Line 28: | Line 27: | ||
</description> | </description> | ||
<seealso> | <seealso> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<see>NCo.SetOrdering</see> | <see>NCo.SetOrdering</see> | ||
− | |||
− | |||
<see>NCo.SetX</see> | <see>NCo.SetX</see> | ||
− | |||
− | |||
<see>NCo.UnsetFp</see> | <see>NCo.UnsetFp</see> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</seealso> | </seealso> | ||
<types> | <types> | ||
+ | <type>polynomial</type> | ||
<type>non_commutative</type> | <type>non_commutative</type> | ||
</types> | </types> |
Revision as of 15:16, 30 April 2013
NCo.SetFp
Set coefficient field to a finite field.
Syntax
NCo.SetFp([P:INT])
Description
Note that the default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. This function has 0 or 1 parameter. The coefficient field is set to the binary field {0,1} if no parameter is given, i.e. via the first function NC.SetFp(), and is set to the finite field {0,1,...,P-1}. The coefficient field can be set to the field of rational numbers via the function NC.UnSetFp.
@param P: a 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