#11652: MPolynomial_libsingular reports the wrong degree
--------------------------------------------------------------+-------------
       Reporter:  saraedum                                    |         Owner:  
malb                                     
           Type:  defect                                      |        Status:  
positive_review                          
       Priority:  minor                                       |     Milestone:  
sage-5.5                                 
      Component:  commutative algebra                         |    Resolution:  
                                         
       Keywords:  singular, polynomial, degree, sd35, sd35.5  |   Work issues:  
                                         
Report Upstream:  Reported upstream. No feedback yet.         |     Reviewers:  
William Stein, Paul Zimmermann, David Roe
        Authors:  Julian Rueth, William Stein                 |     Merged in:  
                                         
   Dependencies:                                              |      Stopgaps:  
                                         
--------------------------------------------------------------+-------------

Comment (by zimmerma):

 I tried the patch on top of Sage 5.3 and got:
 {{{
 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)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /tmp/<ipython console> in <module>()

 /usr/local/sage-5.3/sage/local/lib/python2.7/site-
 packages/sage/rings/polynomial/multi_polynomial_libsingular.so in
 
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular.degree
 (sage/rings/polynomial/multi_polynomial_libsingular.cpp:17832)()

 TypeError: argument must canonically coerce to parent
 }}}
 Is that normal?

 Paul

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