ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 01 Mar 2018 05:40:15 -0600Convert from algebra of differential formshttp://ask.sagemath.org/question/41318/convert-from-algebra-of-differential-forms/ I have differential forms of that look like x^2*y or y^3, so, just 0 forms. The parent ring is the algebra of differential forms in the variables x,y, but I was wondering if there was a way to convert the forms to live in a polynomial ring instead. Thanks.Wed, 28 Feb 2018 16:14:15 -0600http://ask.sagemath.org/question/41318/convert-from-algebra-of-differential-forms/Answer by tmonteil for <p>I have differential forms of that look like x^2*y or y^3, so, just 0 forms. The parent ring is the algebra of differential forms in the variables x,y, but I was wondering if there was a way to convert the forms to live in a polynomial ring instead. Thanks.</p>
http://ask.sagemath.org/question/41318/convert-from-algebra-of-differential-forms/?answer=41331#post-id-41331Let me first try to reproduce your situation (you should provide some code so that we do not have to guess):
sage: x, y = var('x, y')
sage: U = CoordinatePatch((x, 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
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 FieldThu, 01 Mar 2018 05:40:15 -0600http://ask.sagemath.org/question/41318/convert-from-algebra-of-differential-forms/?answer=41331#post-id-41331