Yes, x is a float, and that is the point I was making: when x is a float, there is no different in time and space between +/ and (+/) and +/%# .
----- Original Message ----- From: Dan Baronet <[email protected]> Date: Wednesday, May 20, 2009 20:12 Subject: Re: [Jprogramming] +/ slower than (+/ % #)/ To: Programming forum <[email protected]> > > Roger, shouldn't that be a float here? > > --- On Wed, 5/20/09, Roger Hui <[email protected]> wrote: > > > From: Roger Hui <[email protected]> > ... > > > > x=: 1e7 ?...@$ 0 <<<<< float? ------------ > ------- > > 100 ts '+/x' > > 0.0192155 1024 > > 100 ts '(+/%#)x' > > 0.0191934 1216 > > 100 ts '(+/)x' > > 0.0202687 1024 > > > > No difference among the three on a floating point > > argument. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
