Vector products: Difference between revisions
m
→{{header|J}}
m (J: a couple minor variations on the cross product themes) |
m (→{{header|J}}) |
||
Line 2,311:
cross=: ] ip CT@#@[ ip [</syntaxhighlight>
Note that there are a variety of other generalizations have cross products as a part of what they do. (For example, we could implement cross product using complex numbers in a Cayley Dickson implementation of quaternion product.)
An alternative definition for cross (based on finding the determinant of a 3 by 3 matrix where one row is unit vectors) could be:
|