Ask Your Question

Revision history [back]

Perhaps

sage: x, y = QQ['x,y'].gens()
sage: P = x^2 + y^2
sage: Q = P(1/x, y)
sage: Q.denominator() * Q
x^2*y^2 + 1