#11847: unexpexted behavior of degree() with matrix ordering
-----------------------------------+----------------------------------------
Reporter: john_perry | Owner: malb
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: commutative algebra | Keywords: degree, polynomial,
singular
Work_issues: | Upstream: Not yet reported
upstream; Will do shortly.
Reviewer: | Author: john_perry
Merged: | Dependencies: sage 4.7.2
-----------------------------------+----------------------------------------
Comment(by klee):
I would never change the behavior of degree(),degrees(),total_degree(),
which should return the standard things as Simon said, except of course
bug fixes.
For exponent(), exponents(), total_exponents(), I would expect
{{{
sage: f=x^3+x*y+1
sage: f.exponent(x)
[3,1,1]
sage: f.exponents()
[(3,0),(1,1),(0,0)]
sage: f.total_exponent()
[3,2,0]
sage: f.exponent()
[3,2,0]
sage: g=x*y
sage: g.exponent(x) % convenient behavior for a monomial
1
sage: g.exponents()
(1,1)
sage: g.total_exponent()
2
sage: g.exponent()
2
}}}
Then even in a polynomial ring with the default grading, the two sets of
methods will play different roles.
I would object names mixing "degree" and "exponent" in any way.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11847#comment:5>
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.