lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2017-08-31 22:02 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:
> The following algorithm does it in any binary floating-point arithmetic.

Oops, slip of the finger. A - should be a +.

x=1.0
repeat x=x+x until (2*x+1)%2 == 0
x=2*x-1
repeat x=x+x until 2*x==1/0