Thanks Raul!
By making the following adjustment I was able to get an "outer-product" of 
operations and numbers

((0 1 2,:0 2 1){ops) 4 :'x/"1 y'"1 _] 2 1 3 4,1 2 3 4,: 1 3 2 4
 1 _1 _5
_9 _9 _4

I'm hesitant to ask, but in the interests of furthering my understanding of the 
concepts (rather than just knowledge of solutions), why does the following give 
a rank error?
  ((0 1 2,:0 2 1){ops) /"1 _] 1 2 3 4

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] On Behalf Of Raul Miller
> Sent: Sunday, 1 June 2008 1:13
> To: Programming forum
> Subject: Re: [Jprogramming] inserting gerunds
>
> On 5/31/08, Sherlock, Ric <[EMAIL PROTECTED]> wrote:
> > ops=: +`*`-
> >   (0 1 2,:0 2 1){ops
> > +-+-+-+
> > |+|*|-|
> > +-+-+-+
> > |+|-|*|
> > +-+-+-+
> >
> >  ((0 1 2,:0 2 1){ops) / 1 2 3 4
> > |rank error
> ...
> > The answer I would want is:
> > _1 _9
>
>     ((0 1 2,:0 2 1){ops) 4 :'x/y'"1]1 2 3 4
> _1 _9
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to