DifferentialGeometry:-Tools[&MatrixMinus, &MatrixMult, &MatrixPlus, &MatrixWedge]
Calling Sequence
Parameters
Description
Examples
A &MatrixMinus B - subtract two Matrices/Vectors of vectors, differential forms or tensors
A &MatrixMult C - multiply a Matrix/Vector A of vectors, differential forms or tensors by a scalar C or a Matrix/Vector C of scalars
C &MatrixMult A - multiply a Matrix A of vectors, differential forms or tensors by a scalar C or a Matrix/Vector C of scalars
A &MatrixPlus B - add two Matrices/Vectors of vectors, differential forms or tensors
E &MatrixWedge F - calculate the Matrix wedge product of two Matrices/Vectors of differential forms.
A, B
-
two Matrices/Vectors of vectors, differential forms or tensors
C
a scalar or a Matrix/Vector of scalars
E, F
two Matrices/Vectors of differential forms
These commands provide, within the DifferentialGeometry environment, the basic arithmetical operations for Matrices or Vectors of: vectors, differential forms, or tensors. They are particularly useful for curvature calculations for connections on principle bundles of matrix groups.
These commands are part of the DifferentialGeometry:-Tools package, and so can be used in the form described above only after executing the commands with(DifferentialGeometry) and with(Tools) in that order.
with⁡DifferentialGeometry:with⁡Tools:
Define a 3-dimensional manifold M with coordinates [x, y, z].
DGsetup⁡x,y,z,M:
Example 1
Define two column Vectors of 1 forms A, B; a 2x2 matrix C of scalars; a row Vector of 1 forms E and a 2x2 Matrix of 1 forms F.
A ≔ Vector⁡evalDG⁡dx−dy,dy+dx
_DG⁡form,M,1,1,1,2,−1_DG⁡form,M,1,1,1,2,1
B ≔ Vector⁡evalDG⁡dx+2⁢dy,dx+3⁢dy
_DG⁡form,M,1,1,1,2,2_DG⁡form,M,1,1,1,2,3
C ≔ Matrix⁡1,2,3,4
1234
E ≔ LinearAlgebra:-Transpose⁡A
F ≔ Matrix⁡evalDG⁡dx−dz,dy,dz,dx+dy+3⁢dz
_DG⁡form,M,1,1,1,3,−1_DG⁡form,M,1,2,1_DG⁡form,M,1,3,1_DG⁡form,M,1,1,1,2,1,3,3
Perform various arithmetic operations with the quantities A, B, C, E, F.
A &MatrixPlus B
_DG⁡form,M,1,1,2,2,1_DG⁡form,M,1,1,2,2,4
A &MatrixMinus B
_DG⁡form,M,1,2,−3_DG⁡form,M,1,2,−2
a &MatrixMult A
_DG⁡form,M,1,1,a,2,−a_DG⁡form,M,1,1,a,2,a
C &MatrixMult A
_DG⁡form,M,1,1,3,2,1_DG⁡form,M,1,1,7,2,1
E &MatrixMult C
_DG⁡form,M,1,1,4,2,2_DG⁡form,M,1,1,6,2,2
E &MatrixWedge B
_DG⁡form,M,2,1,2,5
C &MatrixMult F
_DG⁡form,M,1,1,1,3,1_DG⁡form,M,1,1,2,2,3,3,6_DG⁡form,M,1,1,3,3,1_DG⁡form,M,1,1,4,2,7,3,12
F &MatrixWedge A
_DG⁡form,M,2,1,2,−2,1,3,1,2,3,−1_DG⁡form,M,2,1,3,−4,2,3,−2
F &MatrixWedge F
_DG⁡form,M,2,2,3,1_DG⁡form,M,2,2,3,4_DG⁡form,M,2,2,3,1_DG⁡form,M,2,2,3,−1
See Also
DifferentialGeometry
LinearAlgebra
AlgebraicOperations
evalDG
DGzip
Matrix
Vector
Download Help Document
What kind of issue would you like to report? (Optional)