#12552: degree of polynomial_element is of type int
-----------------------------------+----------------------------------------
   Reporter:  saraedum             |          Owner:  malb              
       Type:  defect               |         Status:  new               
   Priority:  trivial              |      Milestone:  sage-5.0          
  Component:  commutative algebra  |       Keywords:  degree, polynomial
Work_issues:                       |       Upstream:  N/A               
   Reviewer:                       |         Author:  Julian Rueth      
     Merged:                       |   Dependencies:                    
-----------------------------------+----------------------------------------
 The degree of a polynomial over {{{RDF}}} is of type {{{int}}} and not a
 sage Integer.

 {{{
 sage: R.<x> = RDF[]
 sage: type(x.degree())
 <type 'int'>
 sage: x.degree().divides(6)
 Error
 }}}

 This is not consistent with polynomials over other rings:

 {{{
 sage: R.<x> = QQ[]
 sage: type(x.degree())
 <type 'sage.rings.integer.Integer'>
 sage: x.degree().divides(6)
 True
 }}}

 The attached patch fixes this.

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