The dictionary description on /: is a specification and not a prescription on how to implement it. The fact that
/: (i.1e6),"1 0 ]33 11 44 22 1 3 0 2 gives the correct answer is a pretty good indication that the base value is not used in the implementation. ----- Original Message ----- From: "Miller, Raul D" <[EMAIL PROTECTED]> Date: Thursday, August 31, 2006 8:40 am Subject: RE: [Jprogramming] Grade Up/Down with tables > June Kim wrote: > > What does "base" mean here? > > #. > > > For example, > > /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > > 3 1 1 8 3 > > 3 1 4 1 6 > > 6 1 8 0 3 > > > > What is the base value of the rows in this case(and why twice the > > magnitude of any of the elements)? > > x=.3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > >:+:>./,|x > 17 > /: x > 1 0 2 > /:17#.x > 1 0 2 > > Twice, to allow for negative numbers. > > That said, the sorting algorithm probably does not use 17 in > this case. It probably "uses" 2^32. > > More generally, I expect that internally the base value > primitive is not being used -- this would be slow, and > would cause precision problems, with floating point arrays. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
