#11746: Unify the definition of "monomial", introduce "term"
-----------------------------------+----------------------------------------
Reporter: boothby | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: commutative algebra | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------------+----------------------------------------
Consider:
{{{
sage: R.<x> = QQ[]
sage: S.<u,v> = QQ[]
sage: f = 2*x
sage: g = 2*u
sage: f.is_monomial()
True
sage: g.is_monomial()
False
}}}
According to Wikipedia, there are two conventions on the matter, and we
should support both. I propose that we accept neither {{{f}}} nor {{{g}}}
as monomials, and add the method {{{is_term}}}:
{{{
sage: f.is_monomial()
False
sage: g.is_monomial()
False
sage: f.is_term()
True
sage: g.is_term()
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11746>
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.