Thanks to everyone who replied to my original post.

Now for a supplementary!

Given that (for example)   

   10 (6 , *)/ 20 30
6 200 300

...looks completely counter-intuitive to me, what advantage is there of using 
this methodology over the more obvious (to me, anyway!)

   6, 10*/20 30
6 200 300

It doesn't seem to be for performance reasons...

   [EMAIL PROTECTED]
  
  (6, 10*/data) -: 10 (6 , *)/ data   NB. ensure results are equal
1

   ts '(6, 10*/data)'
0.0303572 8.38989e6
  
   ts '10 (6 , *)/ data'
0.0331207 8.39002e6

..but I guess there must be a cogent reason that escapes me!


Richard

> Date: Wed, 23 Jan 2008 07:18:06 -0800
> From: [EMAIL PROTECTED]
> Subject: Re: [Jprogramming] N0 V1 V2
> To: [email protected]
> 
> (1 2 3,*) /  7 8 9
> 1 2 3 7 14 21 504
>    
>    (1 2 3"_,*) /  7 8 9
> 1 2 3 7 14 21 504
>    
>    7 (1 2 3"_ , *) (8 (1 2 3"_ , *) 9)
> 1 2 3 7 14 21 504
> 
> 
> 
> 
> ----- Original Message ----
> From: Richard Donovan <[EMAIL PROTECTED]>
> To: Programming forum <[email protected]>
> Sent: Wednesday, January 23, 2008 9:49:40 AM
> Subject: [Jprogramming] N0 V1 V2
> 
> 
> 
> Forum,
> 
> I am currently investigating the new (to me!) construct N0 V1 V2, and have 
> studied the release notes for J601 where the implementation is explained.
> 
> I am specifically interested in the use of this construct in the expression...
> 
>   (1 2 3,*)  /  7 8 9          NB.      (N0 V1 V2)  /  N1    where N0 is 1 2 
> 3, V1 is ,  V2 is *,  N1 is 7 8 9
> 1 2 3 7 14 21 504
> 
> which seems to have been calculated thus...
> 
> 1 2 3  ,  (7 * 1 2 3)  ,  (7*8*9)
> 
> I believe the use of / (insert) causes this construct to be used in the 
> dyadic form. I cannot see any place the dyadic construct is explained and am 
> struggling to see why this is calculated like it is!
> 
> I would be grateful for any assistance.
> 
> Thanks,
> 
> Richard
> 
> _________________________________________________________________
> Free games, great prizes - get gaming at Gamesbox. 
> http://www.searchgamesbox.com----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

_________________________________________________________________
Get Hotmail on your mobile, text MSN to 63463!
http://mobile.uk.msn.com/pc/mail.aspx----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to