This entry is documented with its primary interface. Open the documentation →
cross
cross(a: Vector, b: Vector): Vectorcross(a: Expression, b: Expression): Expressioncross(a: ParserEntity, b: ParserEntity): Expression | VectorComputes the cross product of two vectors in 0, 1, 3, or 7 dimensions.
The three-dimensional result is the familiar cross product; the
seven-dimensional result follows the fixed octonion convention documented
on Vector.cross. The 7D multiplication table is not uniquely
determined by dimension alone. Zero- and one-dimensional results are zero
vectors. Other dimensions are unsupported.
Two symbolic Expressions are instead left as an unevaluated cross(a, b)
call, because their dimensions are not known.
core!UnexpectedDataType If the operands have incompatible types.
core!DimensionError If Vector lengths differ or are not 0, 1, 3, or 7.
Parameters
Returns
Vector — A new Vector for two supported Vectors; otherwise an unevaluated
cross(a, b) Expression when both arguments are symbolic Expressions.
