Also:
  (1 + *)"0/~ i.3
1 1 1
1 2 3
1 3 5
  NB. foo"0/ i. n  should cover it.

Björn Helgason wrote:
    (1 + *)/"0 1~ i.3
1 1 1
1 2 3
1 3 5

2008/10/30 June Kim <[EMAIL PROTECTED]>

  */~ i.3
0 0 0
0 1 2
0 2 4

Yes.

  (1 + *)/~ i.3
1 2 5

What?

I was surprised since I originally thought the result of (1 + *)/
should be instead:

1 1 1
1 2 3
1 3 5

>From the dictionary:

"In general, each cell of x is applied to the entire of y"

So my guess of the result was like the concatenation of,

0 (1+*) i. 3
1 (1+*) i. 3
2 (1+*) i. 3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




------------------------------------------------------------------------

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

--
------------------------------------------------------------------------
|\/| Randy A MacDonald       | APL: If you can say it, it's done.. (ram)
|/\| ramacd <at> nbnet.nb.ca |
|\ |                         | The only real problem with APL is that
BSc(Math) UNBF'83            | it is "still ahead of its time."
Sapere Aude                  |     - Morten Kromberg
Natural Born APL'er          |
-----------------------------------------------------(INTP)----{ gnat }-



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

Reply via email to