Ask Your Question

Revision history [back]

Let me first try to reproduce your situation (you should provide some code so that we do not have to guess):

sage: x, y, z = var('x, y, z')
sage: U = CoordinatePatch((x, y, z))
sage: F = DifferentialForms(U)
sage: form1 = DifferentialForm(F, 0, x^2*y); form1
x^2*y
sage: form1.parent()
Algebra of differential forms in the variables x, y, z

If you want to turn this form into a polynomial over the rationals (say), you can do the following convertion:

sage: R.<x,y> = PolynomialRing(QQ)
sage: R(form1)
x^2*y
sage: R(form1).parent()
Multivariate Polynomial Ring in x, y over Rational Field

Let me first try to reproduce your situation (you should provide some code so that we do not have to guess):

sage: x, y, z y = var('x, y, z')
y')
sage: U = CoordinatePatch((x, y, z))
y))
sage: F = DifferentialForms(U)
sage: form1 = DifferentialForm(F, 0, x^2*y); form1
x^2*y
sage: form1.parent()
Algebra of differential forms in the variables x, y, z
y

If you want to turn this form into a polynomial over the rationals (say), you can do the following convertion:

sage: R.<x,y> = PolynomialRing(QQ)
sage: R(form1)
x^2*y
sage: R(form1).parent()
Multivariate Polynomial Ring in x, y over Rational Field