Skip to content

Multivariate LaurentPolynomial can have coefficients in the wrong ring #2952

@mwhansen

Description

@mwhansen

This causes an error in the coercion system:

sage: R.<q>=QQ[]
sage: L.<x,y,z> = LaurentPolynomialRing(R)
sage: f=(x+y+z^-1)^2
sage: f.substitute(z=1)

This is because the coefficients of f (which has L as its parent) do not lie in R, but in its fraction field, due to the z^-1 and the way __pow__() is implemented.

Component: algebra

Keywords: laurent polynomials

Author: Peter Bruin

Branch/Commit: 355cae6

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/2952

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions