#2952: [with patch, needs work] LaurentPolynomialRing coercion error
---------------------------------------+--------------------------
Reporter: mhansen | Owner: roed
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-6.2
Component: coercion | Resolution:
Keywords: laurent polynomials | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------------+--------------------------
Comment (by pbruin):
It seems the underlying problem is that
`LaurentPolynomial_mpair.__pow__()` can return Laurent polynomials whose
coefficients do not lie in its base ring, but in its fraction field:
{{{
sage: R.<q>=QQ[]
sage: L.<x,y,z> = LaurentPolynomialRing(R)
sage: g=z^-1
sage: parent(g)
Multivariate Laurent Polynomial Ring in x, y, z over Univariate Polynomial
Ring in q over Rational Field
sage: parent(g.coefficients()[0])
Fraction Field of Univariate Polynomial Ring in q over Rational Field
}}}
The last line should simply be `Univariate ...`
A slightly unrelated note: `z^-1` still lies in `L` (ignoring this bug),
but `1/z` and `~z` return elements of the fraction field of `L`.
--
Ticket URL: <http://trac.sagemath.org/ticket/2952#comment:9>
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.