DifferentialGeometry[Tools]
DGequal
Calling Sequence
Parameters
Description
Examples
DGequal(S1, S2)
S1, S2
-
two lists of vectors, differential forms, or tensors; two transformations; two Lie algebra data structures; or two representations
Let S1 and S2 be two lists of vectors, differential forms, or tensors. If every element of S1 is in the span of S2 and every element of S1 is in the span of S2, then DGequal(S1, S2) returns true and otherwise false.
If the two transformations Phi1 and Phi2 have the same domain frame, range frame, and the same coordinate expressions, then DGequal(Phi1, Phi2) returns true and otherwise false. The command DGequal(Phi1, Phi2) computes the differences between the Jacobian matrices and the coordinate equations for the two transformations Phi1 and Phi2 and tests if these differences are zero.
This command is part of the DifferentialGeometry:-Tools package, and so can be used in the form DGequal(...) only after executing the commands with(DifferentialGeometry) and with(Tools) in that order. It can always be used in the long form DifferentialGeometry:-Tools:-DGequal.
with⁡DifferentialGeometry:with⁡Tools:with⁡LieAlgebras:
Example 1.
First initialize a 4-dimensional manifold M with coordinates [x, y, z, w].
DGsetup⁡x,y,z,w,M:
Show that the vector subspaces spanned by the lists of vectors S1 and S2 are the same.
S1≔evalDG⁡D_x,D_y,D_x+D_y,D_x+D_y+D_z
S1≔D_x,D_y,D_x+D_y,D_x+D_y+D_z
S2≔evalDG⁡D_x,D_y,D_z
S2≔D_x,D_y,D_z
DGequal⁡S1,S2
true
Show that the subspaces of differential forms spanned by the lists of 2-forms S3 and S4 are not the same.
S3≔evalDG⁡dx&wdy,dx&wdz
S3≔dx⁢⋀⁢dy,dx⁢⋀⁢dz
S4≔evalDG⁡dx&wdy,dy&wdz
S4≔dx⁢⋀⁢dy,dy⁢⋀⁢dz
DGequal⁡S3,S4
false
Example 2.
First initialize manifolds M and N with coordinates [x, y] and [u, v].
DGsetup⁡x,y,M:DGsetup⁡u,v,N:
Show that the transformations Phi1 and Phi2 are the same.
Φ1≔Transformation⁡M,N,u=1x+1y,v=x⁢y
Φ1≔u=1x+1y,v=x⁢y
Φ2≔Transformation⁡M,N,u=x+yx⁢y,v=x⁢y
Φ2≔u=x+yx⁢y,v=x⁢y
DGequal⁡Φ1,Φ2
Show that the transformations Phi3 and Phi4 are not the same without assuming that x > 0.
Φ3≔Transformation⁡M,N,u=sqrt⁡x2,v=0
Φ3≔u=x2,v=0
Φ4≔Transformation⁡M,N,u=x,v=0
Φ4≔u=x,v=0
DGequal⁡Φ3,Φ4
DGequal⁡Φ3,Φ4assuming0<x
Example 3.
Define two Lie algebras data structures. Check that they are equal.
A≔Matrix⁡1,0,0,−1,Matrix⁡0,1,0,0,Matrix⁡0,0,1,0
A≔100−1,0100,0010
LD1≔LieAlgebraData⁡A,alg1
LD1≔e1,e2=2⁢e2,e1,e3=−2⁢e3,e2,e3=e1
LD2≔LieAlgebraData⁡v1,v2=2⁢v2,v1,v3=−2⁢v3,v2,v3=v1,v1,v2,v3,alg1
LD2≔e1,e2=2⁢e2,e1,e3=−2⁢e3,e2,e3=e1
DGequal⁡LD1,LD2
Example 4.
Define two representations of a Lie algebra and test for equality. First define the Lie algebra.
L≔_DG⁡LieAlgebra,A1,3,2,3,1,1,1,3,2,−1,1,2,3,1
L≔e1,e2=e3,e1,e3=−e2,e2,e3=e1
DGsetup⁡L
Lie algebra: A1
Define the representation space V.
DGsetup⁡x1,x2,x3,V
frame name: V
ρ1≔Representation⁡A1,V,Adjoint⁡A1
ρ1≔e1,00000−1010,e2,001000−100,e3,0−10100000
DGequal⁡ρ1,ρ1
Make a change of basis in the representation space.
ρ2≔ChangeBasis⁡ρ1,D_x1,D_x2,D_x3,V1
ρ2≔ChangeBasis⁡e1,00000−1010,e2,001000−100,e3,0−10100000,D_x1,D_x2,D_x3,V1
The representations rho1 and rho2 are equivalent but they are not equal.
DGequal⁡ρ1,ρ2
See Also
DifferentialGeometry
Tools
LieAlgebras
LieAlgebraData
Representation
Transformation
Download Help Document