But */ does NOT know. Such knowledge would cost time. So it will worsen any such loop.
Perhaps you could do 0&e. or so? Oleg On Nov 25, 2007, at 7:59, Richard Donovan <[EMAIL PROTECTED]> wrote: It would save me a lot of time if */ y (product) could be made to return zero result as soon as it encounters a 0 in y . y=.0,1e7#7 ts '*/y' NB. nearly six seconds to calc on a mid-range pentium 5.85124 1088 could in fact return zero "instantaneously". Oviously this is the "best/worst case scenario" to make my point but it seems that */ continues the multiplication even after it "knows" that the result will be zero. I have records containing many thousands of fields, any of which could be zero, and it would save an immense amount of time if */ could be amended. This seems like it may be an easy and worthwhile change. Similarly... x=.0 ts 'y-x' NB. Lots of time and space to do nothing! 0.149041 6.71095e7 ts 'y+x' 0.157018 6.71095e7 ts 'y' 1.00571e_5 384 _________________________________________________________________ 100’s of Music vouchers to be won with MSN Music https://www.musicmashup.co.uk---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ____________________________________________________________________________________ Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
