#6835: 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:              
   Merged:           |  
---------------------+------------------------------------------------------
 Finite fields in Sage have 4 different types, depending on the
 characteristic and degree.  There is an inconsistency in the type of the
 degree of the field:
 {{{
 sage: k = GF(2,'b'); type(k); type(k.degree())
 <class 'sage.rings.finite_field_prime_modn.FiniteField_prime_modn'>
 <type 'int'>
 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 'int'>
 }}}

 i.e. in 2 of the 4 cases the degree is an int rather than an Integer.

 Patch soon.

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