#6835: [with patch, needs review] Inconsistent types for degree of finite fields
---------------------+------------------------------------------------------
 Reporter:  cremona  |       Owner:  tbd         
     Type:  defect   |      Status:  new         
 Priority:  minor    |   Milestone:  sage-4.1.2  
Component:  algebra  |    Keywords:  finite field
 Reviewer:           |      Author:  John Cremona
   Merged:           |  
---------------------+------------------------------------------------------
Changes (by newvalueoldvalue):

  * author:  => John Cremona


Comment:

 The patch is very simple, just two lines changed (one for each type).  I
 tested all files in sage/rings.  After:
 {{{
 sage: k = GF(2,'b'); type(k); type(k.degree())
 <class 'sage.rings.finite_field_prime_modn.FiniteField_prime_modn'>
 <type 'sage.rings.integer.Integer'>
 sage: k = GF(2^10,'b'); type(k); type(k.degree())
 <type 'sage.rings.finite_field_givaro.FiniteField_givaro'>
 <type 'sage.rings.integer.Integer'>
 sage: k = GF(2^40,'b'); type(k); type(k.degree())
 <type 'sage.rings.finite_field_ntl_gf2e.FiniteField_ntl_gf2e'>
 <type 'sage.rings.integer.Integer'>
 sage: k = GF(3^40,'b'); type(k); type(k.degree())
 <class 'sage.rings.finite_field_ext_pari.FiniteField_ext_pari'>
 <type 'sage.rings.integer.Integer'>
 }}}

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