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

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

> 

with⁡DifferentialGeometry:

 

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

> 

DGsetup⁡x,y,z,w,M:

 

Example 1.

Create some vectors.

> 

evalDG⁡2⁢D_x−y⁢D_z+x2⁢D_w

2⁢D_x−y⁢D_z+x2⁢D_w

(1)
> 

evalDG⁡12⁢D_x−1y⁢D_z+1x2⁢D_w

D_x2−D_zy+D_wx2

(2)

 

Example 2. 

Create a differential form.

> 

evalDG⁡dx&wdy+x2+y2⁢dz&wdw

dx⁢⋀⁢dy+x2+y2⁢dz⁢⋀⁢dw

(3)

 

Example 3.

Create some tensors.

> 

evalDG⁡dx&tdy+x2+y2⁢dz&tdw

dx⁢dy+x2+y2⁢dz⁢dw

(4)
> 

evalDG⁡dx&sdy+dz&tdw

dx2⁢dy+dy2⁢dx+dz⁢dw

(5)

 

Example 4.

Note the difference between the following two calls to evalDG.

> 

evalDG⁡0⁢D_x

0

(6)
> 

eval⁡evalDG⁡a⁢D_x,a=0

0⁢D_x

(7)
> 

Tools:-DGzero⁡vector

0⁢D_x

(8)

See Also

&plus

DGzero

DGzip

DifferentialGeometry

Tools