Vector products: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 1,239:
<lang j>cross=: [: > [: -&.>/ .(*&.>) (<"1=i.3) , ,:&:(<"0)</lang>
With an implementation of cross product and inner product, the rest of the task becomes trivial:
<lang j>a=: 3 4 5
|