Wow! I never thought of #. It just reduces to the use of #. if the data come in its natural order!
Thank you for this insight, Markus Am 15.09.2010 16:35, schrieb Zsbán Ambrus: > On Wed, Sep 15, 2010 at 4:31 PM, Zsbán Ambrus<[email protected]> wrote: > >> alt=: 1.03 300 1.025 200 1.02 100 >> +/d**/\f ['f d'=. |:_2]\ alt >> > Wait, I forgot the best one, the one using the #. verb: > > 'f d'=. |:_2]\ alt > (f,0) #.&.|. (0,d) > 627.837 > > Ambrus > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
