Hello everyone, What is the use of non-zero tolerance for the x: verb?
A little example: a=:0.1667 0.8333 0.4286 0.1111 x:a 1667r10000 8333r10000 2143r5000 1111r10000 In Mathematica: In[1]:= Rationalize[{0.1667, 0.8333, 0.4286, 0.1111}] Out[1]= {1667/10000, 8333/10000, 2143/5000, 1111/10000} In[2]:= Rationalize[{0.1667, 0.8333, 0.4286, 0.1111}, 0.01] Out[2]= {1/6, 5/6, 3/7, 1/9} Back to J: I was expecting the that Fit could be used the same way, as in a tolerance for the rationalization, but I get: x:(!.0.01) a |domain error | x: (!.0.01)a I was waiting for this expression to return my desired output: 1r6 5r6 3r7 1r9 Thanks. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm