I completely agree with Raul. We all agree that the problem of identifying 
irrational floating point numbers is unsolvable, simply because any floating 
point number is rational. Critics need not show that a proposed algorithm is 
imperfect, but rather suggest improvements.
   rational=.3 : '1e9>1{"1]2 x: y'
   rational 10^_8 _9 NB. useless result
1 0
   rational (%3)^~i.9 NB. useful result
1 1 0 0 0 0 0 0 1

/Bo.. 

 

    Den 16:37 torsdag den 14. juni 2018 skrev Raul Miller 
<[email protected]>:
 

 Or, put different, it's a heuristic:

It's likely to be right significantly more often than it's wrong for a
variety of likely contexts.

But it's going to be wrong some of the time, also, and it's useful to
understand why that would be.

Thanks,

-- 
Raul
----------------------------------------------------------------------
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