Re: [Jprogramming] Extended precision tolerance

2019-08-03 Thread Nimp O
: 0"0 b=.l=.0j1 r=.1j0 s=.*y be=.y=.|y while. be>x do. vm=. %/@+. m=.l+r if. y < vm do. r=.m else. l=.m end. e=.|y-vm if. e on behalf of Raul Miller Sent: Friday, August 2, 2019 12:10 PM To: Programming forum Subject: Re: [Jprogramming] Extended precision tolerance On Thu,

Re: [Jprogramming] Extended precision tolerance

2019-08-02 Thread Linda Alvord
(GMT-05:00) To: programm...@jsoftware.com Subject: Re: [Jprogramming] Extended precision tolerance if the original numbers have "full" precision (instead of 4 decimals) J gives the result you want x: % p: 1 + i.10 1r3 1r5 1r7 1r11 1r13 1r17 1r19 1r23 1r29 1r31 x: % +: p: 1 + i.10

Re: [Jprogramming] Extended precision tolerance

2019-08-02 Thread Roger Hui
> You definitely need an upper bound (and a lower bound). Values like 10 > would be meaningless ... A (relative) tolerance of 1 or greater is meaningless. See http://code.jsoftware.com/wiki/Essays/Tolerant_Comparison#Tolerance_Less_Than_1 On Fri, Aug 2, 2019 at 9:11 AM Raul Miller wrote: > O

Re: [Jprogramming] Extended precision tolerance

2019-08-02 Thread Raul Miller
On Thu, Aug 1, 2019 at 5:01 PM Nimp O wrote: > Perhaps this upper bound could be removed, at least for x:, since I believe > the main use cases for tolerance on this verb would be bigger values, as > illustrated in my earlier example. > At least in this context, I can't see anything catastrophic

Re: [Jprogramming] Extended precision tolerance

2019-08-01 Thread 'Pascal Jasmin' via Programming
l Miller Sent: Thursday, August 1, 2019 11:12 AM To: Programming forum Subject: Re: [Jprogramming] Extended precision tolerance Looks like this specifies comparison tolerance. https://code.jsoftware.com/wiki/Essays/Tolerant_Comparison "Appendix C, System Conventions and Limits, says that the to

Re: [Jprogramming] Extended precision tolerance

2019-08-01 Thread Nimp O
ust 1, 2019 11:12 AM To: Programming forum Subject: Re: [Jprogramming] Extended precision tolerance Looks like this specifies comparison tolerance. https://code.jsoftware.com/wiki/Essays/Tolerant_Comparison "Appendix C, System Conventions and Limits, says that the tolerance is less than or

Re: [Jprogramming] Extended precision tolerance

2019-08-01 Thread Raul Miller
Looks like this specifies comparison tolerance. https://code.jsoftware.com/wiki/Essays/Tolerant_Comparison "Appendix C, System Conventions and Limits, says that the tolerance is less than or equal to 2^_34 . Historically, the upper bound on the tolerance was chosen so that comparisons involving 3

[Jprogramming] Extended precision tolerance

2019-08-01 Thread Nimp O
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. x:a 1667r1 8333r1 2143r5000 r1 In Mathematica: In[1]:= Rationalize[{0.1667, 0.8333, 0.4286, 0.}] Out[1]= {1667/1, 8333/1, 2143/5000, /100