Post Reply 
newRPL - build 1255 released! [updated to 1299]
08-18-2019, 09:43 PM (This post was last modified: 08-18-2019 09:45 PM by Claudio L..)
Post: #571
RE: newRPL - build 1255 released! [updated to 1282]
(08-18-2019 08:54 PM)JoJo1973 Wrote:  I tied to replicate some of the results in Joe Horn's thread. Using the current implementation the only example I could replicate would be #2 but

14 SET PREC
π ->NUM
->Q

returns 5419351 / 1725033 which is different from the results of pdq(PI500,14) or pdq(PI,14) from Joe's thread.

I tried for fun a little test:

<< 4 20 FOR i i SETPREC π ->NUM ->Q NEXT >> which rules out an off-by-1 error in setting the precision.

Am I doing something wrong? Is ->Q using the 5*10^(-prec-1) tolerance instead of the 10^(-prec) rule? (I don't have a Prime so I can't compare results...)

PS: why are the numerators in approx form while the denominators in exact form?

His results were done using a prime, but since the prime uses a different internal representation (binary) and newRPL uses decimal, the target number is not the same in both systems. I think it's fine that it returns a different fraction as long as the result of ->NUM on that fraction is within the requested 5*10^(-prec-1) tolerance.

EDIT: I thought I took care of clearing the approx. bit. I missed something obviously...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
RE: newRPL - build 1255 released! [updated to 1282] - Claudio L. - 08-18-2019 09:43 PM
How to participate? - erazor - 12-13-2019, 07:12 AM



User(s) browsing this thread: 7 Guest(s)