Is it possible to make sage recognize that a certain rational function as a Laurent polynomial, and treat it as such?
A simple example:
Rtest = LaurentPolynomialRing(ZZ, ['q1'])
Rtest.inject_variables(verbose=False)
(1/(1-q1) + 1/(1-q1^-1)).category()
lives correctly in the fraction field. However, it is in particualr a polynomial, to which I'd like to apply the polynomials' methods, e.g. get its monomial list.
Is this possible to achieve?