Not really, because the same could be asked for and/ wih a zero somewhere. But more important is the question of what zero really is.fuzz comes so easily and very small times large is/is-not important.

Ralph Selfridge


On Sun, 25 Nov 2007, Richard Donovan 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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to