#11784: Add more sanity checks to Galois Field constructor
--------------------------------+-------------------------------------------
Reporter: lftabera | Owner: lftabera
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.8
Component: basic arithmetic | Keywords: begginer
Work_issues: | Upstream: N/A
Reviewer: | Author: Luis Felipe Tabera Alonso
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Old description:
> Galois fields admits a modulus argument and by default it checks if the
> modulus is irreducible mod the characteristic of the field.
>
> However, it does not check that the polynomial is of the right degree.
>
> An example:
>
> {{{
> sage: K=GF(3**2,name='a', modulus=QQ[x](x^3-x+1))
> sage: K
> Finite Field in a of size 3^2
> sage: K.list()
> [0, a + 1, 1, 2, 1, 2, 1, 2, 1]
> }}}
New description:
Galois fields admits a modulus argument and by default it checks if the
modulus is irreducible mod the characteristic of the field.
However, it does not check that the polynomial is of the right degree.
An example:
{{{
sage: K=GF(3**2,name='a', modulus=QQ[x](x^3-x+1))
sage: K
Finite Field in a of size 3^2
sage: K.list()
[0, a + 1, 1, 2, 1, 2, 1, 2, 1]
sage: K.modulus()
x^2
}}}
--
Comment(by lftabera):
Rebase agains 4.7.2
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11784#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.