LinearAlgebra - Maple Programming Help

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Standard : LinearAlgebra/CrossProduct

LinearAlgebra

 CrossProduct
 compute the cross product of two Vectors
 &x
 compute the cross product of two Vectors

 Calling Sequence CrossProduct(U, V, options) U &x V

Parameters

 U, V - three-dimensional Vectors options - (optional); constructor options for the result object

Description

 • The CrossProduct(U, V) function computes the cross product of Vectors U and V.
 This command can also be entered using the infix notation $U&xV$. No additional parameters can be provided in this case.
 • If W := CrossProduct(U, V), then W is a Vector with the following entries.
 $\left[{U}_{2}{V}_{3}-{U}_{3}{V}_{2},-{U}_{1}{V}_{3}+{U}_{3}{V}_{1},{U}_{1}{V}_{2}-{U}_{2}{V}_{1}\right]$
 • If both U and V are row Vectors, their cross product is also a row Vector. Otherwise, a column Vector is returned.
 • The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Vector constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list.  If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
 • This function is part of the LinearAlgebra package, and so it can be used in the form CrossProduct(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[CrossProduct](..).

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $\mathrm{V1}≔⟨1,2,3⟩$
 ${\mathrm{V1}}{:=}\left[\begin{array}{r}{1}\\ {2}\\ {3}\end{array}\right]$ (1)
 > $\mathrm{V2}≔⟨2,3,4⟩$
 ${\mathrm{V2}}{:=}\left[\begin{array}{r}{2}\\ {3}\\ {4}\end{array}\right]$ (2)
 > $\mathrm{CrossProduct}\left(\mathrm{V1},\mathrm{V2}\right)$
 $\left[\begin{array}{r}{-}{1}\\ {2}\\ {-}{1}\end{array}\right]$ (3)
 > $\mathrm{V1}&x\mathrm{V2}$
 $\left[\begin{array}{r}{-}{1}\\ {2}\\ {-}{1}\end{array}\right]$ (4)
 > $\mathrm{CrossProduct}\left(\mathrm{V1},\mathrm{V2},\mathrm{datatype}=\mathrm{float}\right)$
 $\left[\begin{array}{c}{-}{1.}\\ {2.}\\ {-}{1.}\end{array}\right]$ (5)