ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 04 May 2013 23:04:16 +0200Conversion of Differential Forms to a manipulable symbolic expressionhttps://ask.sagemath.org/question/10090/conversion-of-differential-forms-to-a-manipulable-symbolic-expression/[Sage 5.4.1] Hi, I got the following code that does total differentiation off a Sage blog:
sage: x, y, z = var('x, y, z')
sage: U = CoordinatePatch((x, y, z))
sage: F = DifferentialForms(U)
sage: f = F(x^2 + y + sin(z)); f
(x^2 + y + sin(z))
sage: g = f.diff(); g
cos(z)*dz + 2*x*dx + dy
How do I convert `g` to a symbolic form where `dx`, `dy`, and `dz` are also symbolic variables? I need to assign values to all variables via a for loop. Also, is it possible for `g` to be a 3x3 matrix? Thanks much, mahlon
DionysusSat, 04 May 2013 23:04:16 +0200https://ask.sagemath.org/question/10090/