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

Online Help

All Products    Maple    MapleSim


DifferentialGeometry

  

IntersectSubspaces

  

find the intersection of a list of vector subspaces of vectors, forms or tensors

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IntersectSubspaces(S)

Parameters

S

-

a list [A1, A2, ...], where each Ai is a list of vectors, forms or tensors

Description

• 

IntersectSubspaces(S) computes the intersection of the subspaces spanned by the elements of the list.

• 

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

Examples

withDifferentialGeometry:

 

Initialize a 4-dimensional manifold M with coordinates [x, y, z, w].

DGsetupx,y,z,w,M:

 

Example 1.

Find the intersection of the three 3 dimensional subspaces spanned by A1, A2, A3.

A1D_x,D_y,D_z

A1D_x,D_y,D_z

(1)

A2D_x,D_y,D_w

A2D_x,D_y,D_w

(2)

A3evalDGD_y+D_z,D_z+D_w,D_w

A3D_y+D_z,D_z+D_w,D_w

(3)

IntersectSubspacesA1,A2,A3

D_y

(4)

 

Example 2.

Find the intersection of the subspaces of 2-forms spanned by B1 and B2.  Check the result using the GetComponents command.

B1evalDGdx&wdy+dy&wdz,dx&wdwdy&wdz,dx&wdw+dy&wdw,dx&wdy+dx&wdzdz&wdw

B1dxdy+dydz,dxdwdydz,dxdw+dydw,dxdy+dxdzdzdw

(5)

B2evalDGdx&wdydy&wdz,dy&wdz+dz&wdw,dx&wdz+dz&wdw

B2dxdydydz,dydz+dzdw,dxdz+dzdw

(6)

CIntersectSubspacesB1,B2

Cdx2dy+dxdz3dy2dzdzdw

(7)

The command GetComponents returns the components of the 2-form in C with respect to the 2-forms in B1 and B2.  This proves that the 2-form in C does indeed belong to the intersection of the spans of B1 and B2.

GetComponentsC,B1

32,0,0,1

(8)

GetComponentsC,B2

12,−2,1

(9)

See Also

DifferentialGeometry

DGbasis

GetComponents