Post Reply 
PDQ Algorithm: Infinite precision best fraction within tolerance
02-24-2019, 10:29 PM (This post was last modified: 02-24-2019 10:56 PM by cdmackay.)
Post: #21
RE: PDQ Algorithm: Infinite precision best fraction within tolerance
(12-13-2013 05:09 AM)Joe Horn Wrote:  Examples (performed in CAS, not Home, for perfect accuracy):

• pdq(pi,14) --> \(\dfrac{47627751}{15160384}\) (different, because pi is not equal to PI500).

(02-24-2019 08:36 PM)smartin Wrote:  Example #2: pdq(\(\pi\),14) = \(\dfrac{111513555}{35495867}\)

I get pdq(\(\pi\),14) = \(\dfrac{47627751}{15160384}\), on the Android emulator (2.1.14181) in both Home & CAS, using the code that I copied and pasted directly into the program editor, from the first post in this thread.

edit: I get the same on my Prime G2, and also the MacOS virtual Prime (both same firmware as above) using the hpprgm files downloaded from hpcalc.

shouldn't be relevant, but:
Number Format: Standard, 12
epsilon: 1e-12

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: PDQ Algorithm: Infinite precision best fraction within tolerance - cdmackay - 02-24-2019 10:29 PM



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