linalg(deprecated)
crossprod
vector cross product
Calling Sequence
Parameters
Description
Examples
crossprod(u, v)
u, v
-
lists or vectors, each with three elements
Important: The linalg package has been deprecated. Use the superseding LinearAlgebra[CrossProduct], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
This function computes the vector cross-product of u and v, defined to be vector ([u2v3−u3v2, −u1v3+u3v1, u1v2−u2v1]).
The command with(linalg,crossprod) allows the use of the abbreviated form of this command.
withlinalg:
v1≔vector1,2,3
v1≔123
v2≔vector2,3,4
v2≔234
crossprodv1,v2
−12−1
See Also
linalg(deprecated)[dotprod]
linalg(deprecated)[innerprod]
LinearAlgebra
LinearAlgebra[CrossProduct]
VectorCalculus[CrossProduct]
Download Help Document