Skip to content

__invert__ for Laurent polynomial is wrong #20963

Closed
@videlec

Description

@videlec

The parent of the inverse of a Laurent polynomial can be three different things

sage: R.<x> = LaurentPolynomialRing(ZZ)
sage: parent(~x)
Univariate Laurent Polynomial Ring in x over Integer Ring
sage: parent(~(2*x))
Univariate Laurent Polynomial Ring in x over Rational Field
sage: parent(~(x+1))
Fraction Field of Univariate Polynomial Ring in x over Integer Ring

This is against the principle: "the result of an arithmetic operation should only depend on the parent".

At the same time we provide a (partial) conversion from the fraction field back to the original ring.

CC: @miguelmarco

Component: algebra

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions