#11652: MPolynomial_libsingular reports the wrong degree
--------------------------------------------------------------+-------------
       Reporter:  saraedum                                    |         Owner:  
malb                          
           Type:  defect                                      |        Status:  
needs_work                    
       Priority:  minor                                       |     Milestone:  
                              
      Component:  commutative algebra                         |    Resolution:  
                              
       Keywords:  singular, polynomial, degree, sd35, sd35.5  |   Work issues:  
code and docu do not match    
Report Upstream:  Reported upstream. No feedback yet.         |     Reviewers:  
William Stein, Paul Zimmermann
        Authors:  Julian Rueth, William Stein                 |     Merged in:  
                              
   Dependencies:                                              |      Stopgaps:  
                              
--------------------------------------------------------------+-------------
Changes (by {'newvalue': u'Julian Rueth, William Stein', 'oldvalue': 
u'saraedum, William Stein'}):

  * author:  saraedum, William Stein => Julian Rueth, William Stein


Old description:

> On sage-4.7: In the following example, the degree with respect to ''p''
> should be 1 and the degree with respect to ''q'' should be 2.
>
> {{{
> sage: R.<p,q,t> = ZZ[]
> sage: poly = p+q^2+t^3
> sage: poly = poly.polynomial(t)[0]
> sage: poly
> q^2 + p
> sage: poly.degree(p)
> 1
> sage: poly.degree(q)
> 1
> }}}
>
> The issue can be easily worked around:
>
> {{{
> sage: poly.degree(poly.parent(q))
> 1
> }}}
>
> (originally reported on sage-support, see http://groups.google.com/group
> /sage-
> support/browse_thread/thread/608bc46e92da2f49/feb54d2384cef583?lnk=gst&q=polynomial#feb54d2384cef583)

New description:

 On sage-4.7: In the following example, the degree with respect to ''p''
 should be 1 and the degree with respect to ''q'' should be 2.

 {{{
 sage: R.<p,q,t> = ZZ[]
 sage: poly = p+q^2+t^3
 sage: poly = poly.polynomial(t)[0]
 sage: poly
 q^2 + p
 sage: poly.degree(p)
 1
 sage: poly.degree(q)
 1
 }}}

 The issue can be easily worked around:

 {{{
 sage: poly.degree(poly.parent(q))
 1
 }}}

 (originally reported on sage-support, see http://groups.google.com/group
 /sage-
 
support/browse_thread/thread/608bc46e92da2f49/feb54d2384cef583?lnk=gst&q=polynomial#feb54d2384cef583)

 ----

 Apply

 1. [attachment:trac_11652-rewrite.patch]
 1. [attachment:trac_11652_review.patch]

 to the sage repository.

--

Comment:

 Apply trac_11652-rewrite.patch trac_11652_review.patch

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