spoiler answer at bottom,



----- Original Message -----
From: Jose Mario Quintana <[email protected]>
To: Programming forum <[email protected]>
Sent: Thursday, March 17, 2016 7:00 PM
Subject: Re: [Jprogramming] Adverbial Tacit Jym

Let us add another twist, courtesy of David Lambert, to the Exercise 1:

Produce a variant of a1, say a1x0 without involving either @.  or  `:6
such that for arbitrary but specific u and N,

( (u a1)N )  -:  ( (u a1x0)N ),

for example,

    * a1x0 2 3 5 7
14
    (1 + %)  a1x0 3 5 7 9
1.33333333

Clarification (just in case):  No one is recommending to use any solutions
for a1x0 vs other solutions for a1; this is meant to be a puzzle.

P.S.  Remember to show spoiler alerts.  It is ease to forget; believe me, I
know :)


might actually be preferable to other 2 solutions.


a1x0 =: /(@:(0 _1&{))
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to