DifferentialGeometry[Tools]
DGmap
Calling Sequence
Parameters
Description
Examples
DGmap(n, f, X, arg1, arg2, ..., argN)
n
-
a positive integer
f
a Maple procedure
X
any DifferentialGeometry object
argN
(optional) arguments for the procedure f
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.
with⁡DifferentialGeometry:with⁡Tools:
Define a manifold M with local coordinates [x, y].
DGsetup⁡x,y,M
frame name: M
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≔evalDG⁡C1⁢x+C2⁢D_x+C1⁢y⁢D_y
X≔C1⁢x+C2⁢D_x+C1⁢y⁢D_y
DGmap⁡1,diff,X,C1
x⁢D_x+y⁢D_y
DGmap⁡1,diff,X,C2
D_x
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
ω≔evalDG⁡t2⁢x2⁢dx−t3⁢x⁢y2⁢dy
ω≔x2⁢t2⁢dx−y2⁢x⁢t3⁢dy
DGmap⁡1,int,ω,t=0..1
x2⁢dx3−y2⁢x⁢dy4
Example 3.
Evaluate the tensor T at x = 0 by taking the limit of the coefficients as x -> 0.
T≔evalDG⁡exp⁡x−1x⁢dx&tdx+sin⁡2⁢xx⁢dy&tdy
T≔ⅇx−1⁢dxx⁢dx+sin⁡2⁢x⁢dyx⁢dy
DGmap⁡1,limit,T,x=0
dx⁢dx+2⁢dy⁢dy
Example 4.
Substitute s = 1 into the transformation Phi:
Φ≔Transformation⁡M,M,x=s⁢x+s−1⁢y,y=s⁢y
Φ≔x=s⁢x+s−1⁢y,y=s⁢y
DGmap⁡2,subs,Φ,s=1
x=x,y=y
See Also
DifferentialGeometry
Tools
Transformation
Download Help Document