#11784: Add more sanity checks to FiniteField constructor
--------------------------------+-------------------------------------------
   Reporter:  lftabera          |          Owner:  lftabera                 
       Type:  defect            |         Status:  positive_review          
   Priority:  major             |      Milestone:  sage-4.8                 
  Component:  basic arithmetic  |       Keywords:  beginner GF              
Work_issues:                    |       Upstream:  N/A                      
   Reviewer:  Johan Bosman      |         Author:  Luis Felipe Tabera Alonso
     Merged:                    |   Dependencies:                           
--------------------------------+-------------------------------------------
Changes (by jdemeyer):

  * keywords:  beginner => beginner GF


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]
> sage: K.modulus()
> x^2
> }}}

New description:

 Galois (i.e. finite) 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
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11784#comment:7>
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.

Reply via email to