DifferentialGeometry[Tools] - Maple Programming Help

Home : Support : Online Help : Mathematics : DifferentialGeometry : Tools : DifferentialGeometry/Tools/DGsimplify

DifferentialGeometry[Tools]

 DGsimplify

 Calling Sequence DGsimplify(X)

Parameters

 X - a vector field, differential form or tensor

Description

 • This command is typically used to simplify a vector field, differential form or tensor, defined on a manifold M, after a substitution or evaluation of its coefficients at point on M.
 • This command is part of the DifferentialGeometry:-Tools package, and so can be used in the form DGsimplify(...) only after executing the commands with(DifferentialGeometry) and with(Tools) in that order.  It can always be used in the long form DifferentialGeometry:-Tools:-DGsimplify.

Examples

 > $\mathrm{with}\left(\mathrm{DifferentialGeometry}\right):$$\mathrm{with}\left(\mathrm{Tools}\right):$

Example 1.

Define a manifold M with coordinates [x, y, z].

 > $\mathrm{DGsetup}\left(\left[x,y,z\right],M\right):$

Define a tensor on M and evaluate it at the point [x = 0, y = 2, z = 3].

 > $T≔\mathrm{evalDG}\left({x}^{2}\mathrm{D_x}&t\mathrm{dx}+xy\mathrm{D_y}&t\mathrm{dz}+\left(z&t\mathrm{D_z}\right)&t\mathrm{dy}\right)$
 ${T}{≔}\left({{x}}^{{2}}{}{\mathrm{D_x}}\right){}{\mathrm{dx}}{+}\left({x}{}{y}{}{\mathrm{D_y}}\right){}{\mathrm{dz}}{+}\left({z}{}{\mathrm{D_z}}\right){}{\mathrm{dy}}$ (1)
 > $S≔\mathrm{eval}\left(T,\left[x=0,y=2,z=3\right]\right)$
 ${S}{≔}\left({0}{}{\mathrm{D_x}}\right){}{\mathrm{dx}}{+}\left({0}{}{\mathrm{D_y}}\right){}{\mathrm{dz}}{+}\left({3}{}{\mathrm{D_z}}\right){}{\mathrm{dy}}$ (2)

The terms 0*D_x and 0*D_y can be eliminated with a call to DGsimplify.

 > $\mathrm{DGsimplify}\left(S\right)$
 $\left({3}{}{\mathrm{D_z}}\right){}{\mathrm{dy}}$ (3)
 M >