Post Reply 
Another Ramanujan Trick
10-02-2019, 04:03 AM (This post was last modified: 10-02-2019 04:12 AM by Gerson W. Barbosa.)
Post: #11
RE: Another Ramanujan Trick
(09-30-2019 10:24 PM)Valentin Albillo Wrote:  .
Hi again, Gerson:

(09-30-2019 03:10 AM)Gerson W. Barbosa Wrote:  My second approximation uses 10 digits and produces 17 significant digits, but it requires four functions, twice as much compared to the first approximation you mention.

Funny, it seems that my counting methods and yours do differ. In your second approximation I count 13 digits (4,2,1,4,3,6,6,1,6,-6,-6,2,2) and 9 operations (3 additions, 2 divisions, 2 roots and 2 powers).

I would consider one 4 and the two instances of -6 as functions (fourth root and the reciprocals of sixth roots). But I have yet another trick up my sleeve:

10 DESTROY ALL
20 OPTION BASE 1 @ DIM A(35) @ COMPLEX B(34)
30 A(1)=3 @ A(34)=-1.E+12 @ A(35)=-2.4E+17
40 MAT B=PROOT(A)
50 DISP REPT(B(2))


The four significant digits in line 30 of the HP-71B program above yield 10 correct digits of pi.

Best regards,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Another Ramanujan Trick - ttw - 09-29-2019, 06:45 AM
RE: Another Ramanujan Trick - Thomas Okken - 09-29-2019, 09:17 AM
RE: Another Ramanujan Trick - Gerson W. Barbosa - 10-02-2019 04:03 AM
RE: Another Ramanujan Trick - ijabbott - 10-03-2019, 07:21 AM
RE: Another Ramanujan Trick - ijabbott - 10-03-2019, 08:23 PM
RE: Another Ramanujan Trick - ttw - 09-29-2019, 01:28 PM
RE: Another Ramanujan Trick - Albert Chan - 09-29-2019, 03:23 PM
RE: Another Ramanujan Trick - ttw - 09-29-2019, 05:09 PM
RE: Another Ramanujan Trick - Helix - 10-19-2019, 11:59 PM
RE: Another Ramanujan Trick - grsbanks - 10-19-2019, 05:46 PM
RE: Another Ramanujan Trick - rprosperi - 10-19-2019, 11:43 PM



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