DifferentialGeometry:-Tools[DGmap] - Maple Help

Online Help

All Products    Maple    MapleSim


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

DifferentialGeometry:-Tools[DGmap]

Calling Sequence

DGmap(n, f, X, arg1, arg2, ..., argN)

Parameters

n

-

a positive integer

f

-

a Maple procedure

X

-

any DifferentialGeometry object

argN

-

(optional) arguments for the procedure f

Description

• 

The command DGmap is similar to the command map.  DGmap will apply the procedure f to the coefficients of the object X.  The integer n indicates the position of the coefficients of X in the argument list of  f.  Thus DGmap(1, f, X, arg1, arg2, ..., argN) will replace the coefficient C of X with  f(C, arg1, arg2, ..., argN); DGmap(2, f, X, arg1, arg2, ..., argN) will replace the coefficient C of X with f(arg1, C, arg2, ..., argN); and so on.

• 

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

Examples

withDifferentialGeometry:withTools:

 

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

DGsetupx,y,M

frame name: M

(1)

 

Example 1. 

Define a vector field X depending on parameters C1 and C2. Differentiate the coefficients of X with respect to C1 and C2.

X:=evalDGC1x+C2D_x+C1yD_y

X:=C1x+C2D_x+C1yD_y

(2)

DGmap1,diff,X,C1

xD_x+yD_y

(3)

DGmap1,diff,X,C2

`*`D_x

(4)

 

Example 2. 

Define a differential 1-form omega depending on a parameter t.  Integrate the coefficients of omega with respect to t from t = 0 .. 1

ω:=evalDGt2x2dxt3xy2dy

ω:=x2t2dxy2xt3dy

(5)

DGmap1,int,ω,t=0..1

x23dxy2x4dy

(6)

 

Example 3. 

Evaluate the tensor T at x = 0 by taking the limit of the coefficients as x -> 0.

T:=evalDGⅇx1dx &t dxx+sin2xdy &t dyx

T:=ⅇx1xdxdx+sin2xxdydy

(7)

DGmap1,limit,T,x=0

`*`dxdx+2dydy

(8)

 

Example 4. 

Substitute s = 1 into the transformation Phi:

Φ:=TransformationM,M,x=sx+s1y,y=sy

Φ:=x=sx+s1y,y=sy

(9)

DGmap2,subs,Φ,s=1

x=x,y=y

(10)
M > 

See Also

DifferentialGeometry, Tools, Transformation


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam