The dictionary description is one way to avoid having to describe what a major sort key is.
----- Original Message ----- From: Henry Rich <[EMAIL PROTECTED]> Date: Thursday, August 31, 2006 8:39 am Subject: RE: [Jprogramming] Grade Up/Down with tables > All this means is that the first item in each row is the > major sort key, followed by the second item, and so on. > > The base value is the single number you would get from applying > # to the row. In your example, you could use > > 20 #. 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > 489626 488563 971203 > > as the values to be sorted. > > The base needs to be more than twice the magnitude to make sure > that 0 10 is less than 1 _10 for example. > > Henry Rich > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [EMAIL PROTECTED] On Behalf Of June Kim > > Sent: Thursday, August 31, 2006 11:34 AM > > To: Programming forum > > Subject: [Jprogramming] Grade Up/Down with tables > > > > >From J Dictionary: > > > > <quote> > > If y is a table, /:y grades the base value of the rows, using a base > > larger than twice the magnitude of any of the elements. > > </quote> > > > > 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)? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
