#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: saraedum, William Stein | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------------------+-------------
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)
> 2
> sage: poly.degree(q)
> 1
> }}}
>
> The issue can be easily worked around:
>
> {{{
> sage: poly.degree(poly.parent(p))
> 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)
--
Comment (by saraedum):
The output for the example in the ticket description has changed. However,
it's still wrong.
{{{
sage: poly
q^2 + p
sage: poly.degree(p)
1
sage: poly.degree(q)
1
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11652#comment:7>
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.