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

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

CrossProduct

  

computes the cross product of Vectors and differential operators

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CrossProduct(v1,v2)

v1 &x v2

Parameters

v1

-

Vector(algebraic); Vector, Vector-valued procedure, or differential operator

v2

-

Vector(algebraic); Vector, Vector-valued procedure, or differential operator

Description

• 

The CrossProduct(v1, v2) function (vector product) computes the cross product of v1 and v2, where v1 and v2 can be either three dimensional free Vectors, rooted Vectors, position Vectors, vector fields, Del or Nabla.

• 

The function  and can be accessed through  &x or CrossProduct exports.

• 

The behavior of cross product is contained in the following table

 

v1

coord (v1)

v2

coord (v2)

v1&xv2

coord (v1&xv2)

1

free Vector

cartesian

free Vector

cartesian

free Vector

cartesian

 

free Vector

curved

free Vector

any

error

 

2

free Vector

cartesian

rooted Vector (root2)

coord2

rooted Vector (root2)

coord2

3

free Vector

any

vector field

any

error

 

4

free Vector

cartesian

position Vector

cartesian

free Vector

cartesian

 

free Vector

curved

position Vector

cartesian

error

 

5

rooted Vector (root1)

coord1

rooted Vector (root1)

coord1

rooted Vector

coord1

 

rooted Vector (root1)

coord1

rooted Vector (root2)

coord1

error

 

 

rooted Vector (any)

coord1

rooted Vector (any)

coord2

error

 

6

rooted Vector (root1)

coord1

vector field

coord2

v1&xv2root1

coord2

7

rooted Vector (root1)

cartesian

position Vector

cartesian

rooted Vector (root1)

cartesian

8

vector field

coord1

vector field

coord1

vector field

coord1

 

vector field

coord1

vector field

coord2

error

 

9

vector field

coord1

position Vector

cartesian

error

 

10

position Vector

cartesian

position Vector

cartesian

position Vector

cartesian

Examples

restart

withVectorCalculus:

Take the cross product of two free Vectors in cartesian coordinates.

1,0,0&x0,1,0

v1Vector1,4,0,coordinates=cartesianx,y,z

v1140

(1)

v2Vector1,1,1,coordinates=cartesianx,y,z

v2111

(2)

CrossProductv1,v2

GetCoordinatesCrossProductv1,v2

cartesianx,y,z

(3)

Take the cross product of two rooted vectors if they have the same coordinate system and root point.

vsVectorSpace1,π3,π3,sphericalr,p,t

vsmodulelocal_origin,_coords,_coords_dim;exportGetCoordinates,GetRootPoint,Vector,eval;end module

(4)

v1RootedVectorroot=vs,1,1,1

v1111

(5)

v2RootedVectorroot=vs,1,0,1

v2101

(6)

v1&xv2

10−1

(7)

GetRootPointv1&xv2

The cross product of a cartesian free Vector and a rooted Vector is valid. The resulting Vector is rooted.

v1RootedVectorroot=1,π4,1,1,1,1,cylindricalr,p,h

v1111

(8)

v2Vector0,0,1,coordinates=cartesianx,y,z

v2001

(9)

v2&xv1

−110

(10)

GetRootPointv2&xv1

GetCoordinatesv2&xv1

cylindricalr,p,h

(11)

The cross product of two vector fields is defined if they are in the same coordinate system.

vf1VectorFieldr,φ,θ,sphericalr,φ,θ

vf2VectorFieldr2,φ,φ,sphericalr,φ,θ

CrossProductvf1,vf2

Use differential operators to compute the Curl of a vector field.

FVectorField1,x,y,cartesianx,y,z

Del&xF

GVectorFieldr,t,p,sphericalr,p,t

Del&xG

The cross product of two position Vectors is defined. The result is a position Vector.

pv1PositionVector1,p,q,sphericalr,φ,θ

pv1sinpcosqsinqsinpcosp

(12)

pv2PositionVector1,p,p,cylindricalr,φ,h

pv2cospsinpp

(13)

CrossProductpv1,pv2

sinqsinppcospsinpsinpcosqp+cosp2sinp2cosqsinqsinpcosp

(14)

AboutCrossProductpv1,pv2

Type: Position VectorComponents: sinqsinppcospsinp,sinpcosqp+cosp2,sinp2cosqsinqsinpcospCoordinates: cartesianRoot Point: 0,0,0

(15)

See Also

LinearAlgebra[CrossProduct]

VectorCalculus

VectorCalculus[Curl]

VectorCalculus[Del]

VectorCalculus[PositionVector]

VectorCalculus[RootedVector]

VectorCalculus[Vector]

VectorCalculus[VectorField]