#11652: MPolynomial_libsingular reports the wrong degree
-------------------------------------+-------------------------------------
Reporter: saraedum | Owner: malb
Type: defect | Status: needs_work
Priority: minor | Milestone: sage-6.2
Component: commutative | Resolution:
algebra | Merged in:
Keywords: singular, | Reviewers: William Stein, Paul
polynomial, degree, sd35, sd35.5 | Zimmermann, David Roe
Authors: Julian Rueth, | Work issues: issue of comment 5
William Stein | still there
Report Upstream: Reported | Commit:
upstream. No feedback yet. | Stopgaps:
Branch: |
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by saraedum):
Replying to [comment:18 zimmerma]:
> David, for the **variables** p and q, there is a trivial conversion...
>
> Anyway the issue raised in comment [comment:5] is still there:
> {{{
> sage: poly.degree?
> ...
> Return the maximal degree of this polynomial in "x", where "x"
must
> be one of the generators for the parent of this polynomial.
> sage: poly.parent().gens()
> (p, q)
> sage: poly.degree(p)
> ...
> TypeError: argument must canonically coerce to parent
> }}}
> According to the documentation, this should work.
Probably you did not have the latest patch applied. With the latest patch
I get:
{{{
* "x" - (default: "None") a multivariate polynomial which is (or
coerces to) a generator of the parent of self. If "x" is "None",
return the total degree, which is the maximum degree of any
monomial. Note that a matrix term ordering alters the grading of
the generators of the ring; see the tests below. To avoid this
behavior, use either "exponents()" for the exponents themselves,
or the optional argument "std_grading=False".
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/11652#comment:21>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.