Thanks! This caught a real bug in J

+./(,-) _.

loops forever.


On Sat, May 16, 2020 at 5:51 PM Hauke Rehr <hauke.r...@uni-jena.de> wrote:

> sorry, I was not sufficiently precise about my example
> I meant to talk about atomic a only
>
> if $ a is empty, then
> +./ (, -) a
> will work
>
> Thanks for pointing out the lack of precision.
>
> Am 16.05.20 um 11:46 schrieb Raul Miller:
> > I was talking about the implementation.
> >
> > These are different results:
> >
> >     +./@(,-)4.57 4.34 4.44
> > 8.88178e_16
> >     +./@(,-)&.x:4.57 4.34 4.44
> > 0.01
> >     +./@(,-)&.:(*&1p1)4.57 4.34 4.44
> > 5.65432e_16
> >
> > The reason is that binary floating point cannot represent 5^_1 nor
> > 5^_2 accurately.
> >
> > Thanks,
> >
>
> --
> ----------------------
> mail written using NEO
> neo-layout.org
> ----------------------------------------------------------------------
> 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