DifferentialGeometry - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : DifferentialGeometry : DifferentialGeometry/evalDG

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

_DGvector,M,,1,2,3,y,4,x2

(1)

evalDG12D_x1yD_z+1x2D_w

_DGvector,M,,1,12,3,1y,4,1x2

(2)

 

Example 2. 

Create a differential form.

evalDGdx&wdy+x2+y2dz&wdw

_DGform,M,2,1,2,1,3,4,x2+y2

(3)

 

Example 3.

Create some tensors.

evalDGdx&tdy+x2+y2dz&tdw

_DGtensor,M,cov_bas,cov_bas,,1,2,1,3,4,x2+y2

(4)

evalDGdx&sdy+dz&tdw

_DGtensor,M,cov_bas,cov_bas,,1,2,12,2,1,12,3,4,1

(5)

 

Example 4.

Note the difference between the following two calls to evalDG.

evalDG0D_x

0

(6)

evalevalDGaD_x,a=0

_DGvector,M,,1,0

(7)

Tools:-DGzerovector

_DGvector,M,,1,0

(8)
M > 

See Also

&plus

DGzero

DGzip

DifferentialGeometry

Tools