evalDG - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DifferentialGeometry

  

evalDG

  

evaluate a DifferentialGeometry expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

evalDG(T)

Parameters

T

-

a linear combination of vectors, differential forms or tensors defining using +, -, * for scalar multiplication, &w for wedge product, &t for tensor product, and &s for the symmetric tensor product

Description

• 

The command evalDG provides a simple and efficient way for creating vector files, differential forms and tensors for subsequent calculations with the DifferentialGeometry package.

• 

Note that Maple may perform simplifications before passing the arguments to evalDG, and these simplifications may result in an incorrect parsing of the input to evalDG.  In particular, if, for example, X is a vector field, then evalDG(0*X) will return the scalar 0 and not the zero vector.  To define a zero object, use 0 &mult evalDG(X) or the Tools command DGzero.

• 

This command is part of the DifferentialGeometry package, and so can be used in the form evalDG(...) only after executing the command with(DifferentialGeometry).  It can always be used in the long form DifferentialGeometry:-evalDG.

Examples

withDifferentialGeometry:

 

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

DGsetupx,y,z,w,M:

 

Example 1.

Create some vectors.

evalDG2D_xyD_z+x2D_w

2D_xyD_z+x2D_w

(1)

evalDG12D_x1yD_z+1x2D_w

D_x2D_zy+D_wx2

(2)

 

Example 2. 

Create a differential form.

evalDGdx&wdy+x2+y2dz&wdw

dxdy+x2+y2dzdw

(3)

 

Example 3.

Create some tensors.

evalDGdx&tdy+x2+y2dz&tdw

dxdy+x2+y2dzdw

(4)

evalDGdx&sdy+dz&tdw

dx2dy+dy2dx+dzdw

(5)

 

Example 4.

Note the difference between the following two calls to evalDG.

evalDG0D_x

0

(6)

evalevalDGaD_x,a=0

0D_x

(7)

Tools:-DGzerovector

0D_x

(8)

See Also

&plus

DGzero

DGzip

DifferentialGeometry

Tools