LinearAlgebra
CrossProduct
compute the cross product of two Vectors
`&x`
Calling Sequence
Parameters
Description
Examples
CrossProduct(U, V, options)
U &x V
U, V
-
three-dimensional Vectors
options
(optional) constructor options for the result object
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.
U2⁢V3−U3⁢V2,−U1⁢V3+U3⁢V1,U1⁢V2−U2⁢V1
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](..).
with⁡LinearAlgebra:
V1≔1,2,3
V1≔123
V2≔2,3,4
V2≔234
CrossProduct⁡V1,V2
−12−1
V1&xV2
CrossProduct⁡V1,V2,datatype=float
−1.2.−1.
See Also
LinearAlgebra[BilinearForm]
LinearAlgebra[DotProduct]
Vector
VectorCalculus[CrossProduct]
Download Help Document