Previous Up Next

2.38.8  Cross product : cross crossP crossproduct

cross or crossP or crossproduct takes as argument two vectors.
cross or crossP or crossproduct returns the cross product of these two vectors.
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