Previous Up Next

6.42.8  Cross product: cross crossP crossproduct

The cross command finds the cross product of two vectors.
crossP and crossproduct are synonyms for cross.


Example.
Input:

cross([1,2,3],[4,3,2])

Output:


−5,10,−5

Indeed, −5=2*2−3*3, 10=−1*2+4*3, −5=1*3−2*4.


Previous Up Next