Vector products: Difference between revisions

Content added Content deleted
(Added PowerShell)
Line 1,225:
 
=={{header|J}}==
Perhaps the most straightforward definition for cross product in J uses rotate multiplemultiply and subtract:
 
<lang j>cross=: (1&|.@[ * 2&|.@]) - 2&|.@[ * 1&|.@]</lang>