linalg(deprecated)/crossprod - Help

linalg(deprecated)

 crossprod
 vector cross product

 Calling Sequence crossprod(u, v)

Parameters

 u, v - lists or vectors, each with three elements

Description

 • 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 ([${u}_{2}{v}_{3}-{u}_{3}{v}_{2}$, $-{u}_{1}{v}_{3}+{u}_{3}{v}_{1}$, ${u}_{1}{v}_{2}-{u}_{2}{v}_{1}$]).
 • The command with(linalg,crossprod) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding LinearAlgebra[CrossProduct], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $\mathrm{v1}≔\left[\begin{array}{ccc}1& 2& 3\end{array}\right]$
 ${\mathrm{v1}}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\end{array}\right]$ (1)
 > $\mathrm{v2}≔\left[\begin{array}{ccc}2& 3& 4\end{array}\right]$
 ${\mathrm{v2}}{≔}\left[\begin{array}{ccc}{2}& {3}& {4}\end{array}\right]$ (2)
 > $\mathrm{crossprod}\left(\mathrm{v1},\mathrm{v2}\right)$
 $\left[\begin{array}{ccc}{-1}& {2}& {-1}\end{array}\right]$ (3)