The sums of the subsets without the actual subsets,
obtain from the inner product of the boolean table
with the vector:

   nums =. 379638 76500 127500 996.1542 418590.6139

   b=: #: i. 2^#nums
   b
0 0 0 0 0
0 0 0 0 1
0 0 0 1 0
0 0 0 1 1
0 0 1 0 0
0 0 1 0 1
...
   $ b
32 5

  b +/ .* nums
0 418591 996.154 419587 127500 546091 128496 547087 76500 495091 77496.2 496087 
204000 ...
   $ b +/ .* nums
32
   
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to