On Wed, Aug 31, 2011 at 1:09 PM, Istvan Kadar <[email protected]> wrote:
>   Hello, Markus
>
> Thank your help.
> I am sorry the sign's error.
>
> The corrected verb:
>   vx=:crossproduct=:1|.([*1|.])-]*1|.[
>   3 8 2 vx 6 4 5
> 32 _3 _36
>   the sign check:
>  0 0 1 -: 1 0 0 vx 0 1 0
> 1

Seems right now.  Here's the implementation I like to use:

crossproduct=: [:-/ .*(=i.3),"1 2,:

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to