Richard
Here's one attempt:
y (1 2 3, *) z
1 2 3, y * z
So, remembering that f / is evaluated right to left
f / x,y,z NB. where f =: (1 2 3, *)
==> x f (1 2 3 , y*z)
==> 1 2 3, x * (1 2 3, y * z)
==> 1 2 3, x, 2x, 3x, xyz NB. in conventional maths notation
==> 1 2 3 7 14 21 504
More generally, consideration of application of the dyadic verb
x (N V1 V2) y
==> N V1 (x V2 y)
should explain why you get this result.
Does that help?
Mike
Richard Donovan wrote:
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