&MatrixMinus - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DifferentialGeometry:-Tools[&MatrixMinus, &MatrixMult, &MatrixPlus, &MatrixWedge]

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

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.

Parameters

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

Description

• 

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.

Examples

withDifferentialGeometry:withTools:

 

Define a 3-dimensional manifold M with coordinates [x, y, z].

DGsetupx,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.

AVectorevalDGdxdy,dy+dx

Adxdydx+dy

(1)

BVectorevalDGdx+2dy,dx+3dy

Bdx+2dydx+3dy

(2)

CMatrix1,2,3,4

C1234

(3)

ELinearAlgebra:-TransposeA

Edxdydx+dy

(4)

FMatrixevalDGdxdz,dy,dz,dx+dy+3dz

Fdxdzdydzdx+dy+3dz

(5)

Perform various arithmetic operations with the quantities A, B, C, E, F.

A&MatrixPlusB

2dx+dy2dx+4dy

(6)

A&MatrixMinusB

3dy2dy

(7)

a&MatrixMultA

adxadyadx+ady

(8)

C&MatrixMultA

3dx+dy7dx+dy

(9)

E&MatrixMultC

4dx+2dy6dx+2dy

(10)

E&MatrixWedgeB

5dxdy

(11)

C&MatrixMultF

dx+dz2dx+3dy+6dz3dx+dz4dx+7dy+12dz

(12)

F&MatrixWedgeA

2dxdy+dxdzdydz4dxdz2dydz

(13)

F&MatrixWedgeF

dydz4dydzdydzdydz

(14)

See Also

DifferentialGeometry

LinearAlgebra

AlgebraicOperations

evalDG

DGzip

Matrix

Vector