answered 8 years ago
Like that
sage: var('t') sage: P = t^3 + 1/10*t + 3*t^-1; P t^3 + 1/10*t + 3/t sage: rng = LaurentPolynomialRing(QQ,'t') sage: rng(P.numerator())/rng(P.denominator()) 3*t^-1 + 1/10*t + t^3