Closed
Description
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