Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Conversion of Differential Forms to a maniulatible symbolic expression

Sage 5.4.1 Hi, I got the following code that does total differentiation off a Sage blog:

x, y, z = var('x, y, z')

U = CoordinatePatch((x, y, z))

F = DifferentialForms(U)

f = F(x^2 + y + sin(z)); f

g = f.diff(); g
cos(z)dz + 2x*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

click to hide/show revision 2
fixed spelling in title; fixed code layout; added tag SymbolicRing

Conversion of Differential Forms to a maniulatible manipulable symbolic expression

Sage 5.4.1 [Sage 5.4.1] Hi, I got the following code that does total differentiation off a Sage blog:

x, y, z = var('x, y, z')

z') U = CoordinatePatch((x, y, z))

z)) F = DifferentialForms(U)

DifferentialForms(U) f = F(x^2 + y + sin(z)); f

f g = f.diff(); g
cos(z)dz cos(z)*dz + 2x*dx 2*x*dx + dy

dy

How do I convert g g to a symbolic form where dx, dy, dx, dy, and dz dz are also symbolic variables? I need to assign values to all variables via a for loop. Also, is it possible for g g to be a 3x3 matrix? Thanks much, mahlon

click to hide/show revision 3
added "sage:" in code input lines

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         
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