Another Ramanujan Trick
|
10-03-2019, 09:44 PM
Post: #18
|
|||
|
|||
RE: Another Ramanujan Trick
(10-03-2019 07:58 PM)Gerson W. Barbosa Wrote:(10-02-2019 11:14 PM)Valentin Albillo Wrote: You forgot to include the <justjoking> ... </justjoking> tags. Of course you can count on it. Quote:I thought the associated polynomial is interesting just the same. It arises from noticing that the 34th power of pi is 8.00010471505E16, whose underlined digits match the first digits of pi/3. Nice find, indeed. Did you mention it in the past ? I seem to remember having read about it in one of your old posts but I may just be mistaken. Quote:I forgot to mention that it take more than 3 minutes for the HP-71B to show the result. To be fair, you must consider that it's not simply computing just the one root you're interested in for your approximation to Pi, but rather it's simultaneously computing all 34 complex roots to full accuracy (using 15 digits internally). By the time the 3 minutes have elapsed you have the 68 components of the 34 complex roots readily stored in complex array B(), though you then go and use just one of them. Considering this fact, 3 minutes doesn't seem that long, it comes to less than 5.3 seconds per 12-digit root. And, perhaps, using FNROOT instead to compute just the one root you're interested in would be much faster than using PROOT to compute all 34 roots. Did you try ? Regards. V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)