#17520: Division by monomials in LaurentPolynomialRings should not be in the
fraction field
-----------------------------------+---------------------------------------
Reporter: mmarco | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: commutative algebra | Keywords: Laurent polynomials
Merged in: | Authors: Miguel Marco
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------------+---------------------------------------
Right now, if we divide a Laurent Polynomial by a monomial, the result
will live in the fraction field of the corresponding polynomial ring:
{{{
sage: R.<s,q,t>=LaurentPolynomialRing(QQ)
sage: f=s^2*q+q^(-1)*t
sage: f
s^2*q + q^-1*t
sage: f.parent()
Multivariate Laurent Polynomial Ring in s, q, t over Rational Field
sage: f/s
(s^2*q^2 + t)/(s*q)
sage: (f/s).parent()
Fraction Field of Multivariate Polynomial Ring in s, q, t over Rational
Field
}}}
But monomials here are units, so dividing by them should result in an
element of the same ring.
This patch solves this:
{{{
sage: R.<s,q,t>=LaurentPolynomialRing(QQ)
sage: f=s^2*q+q^(-1)*t
sage: f.parent()
Multivariate Laurent Polynomial Ring in s, q, t over Rational Field
sage: f/s
s*q + s^-1*q^-1*t
sage: (f/s).parent()
Multivariate Laurent Polynomial Ring in s, q, t over Rational Field
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17520>
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/d/optout.