Since addition is commutative, this is the same as the sum of the whole
thing,
i.e. +/,w.

On 5/29/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:

I'm not sure why I can't get the sum of the row-sum here:

w
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
   <"1 w
┌─────────┬─────────┬─────────┬─────────┐
│1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│
└─────────┴─────────┴─────────┴─────────┘
   +/"1 w
5 5 5 5
   +/ @: +/"1 w
5 5 5 5
   ( +/ @: +/"1 ) w
5 5 5 5

+/ ( +/"1 w )   NB. this works but why cant I get @: to work?



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




--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to