First time here? Check out the FAQ!
answered 2016-06-06 19:40:20 +0100
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