Vector products: Difference between revisions

Content added Content deleted
Line 1,239: Line 1,239:
<lang j>cross=: [: > [: -&.>/ .(*&.>) (<"1=i.3) , ,:&:(<"0)</lang>
<lang j>cross=: [: > [: -&.>/ .(*&.>) (<"1=i.3) , ,:&:(<"0)</lang>


With an implementation of cross product, the rest of the task becomes trivial:
With an implementation of cross product and inner product, the rest of the task becomes trivial:


<lang j>a=: 3 4 5
<lang j>a=: 3 4 5