Post Reply 
Happy Pi Day!
12-13-2021, 01:54 AM
Post: #14
RE: Happy Pi Day!
(12-13-2021 12:41 AM)Gerson W. Barbosa Wrote:  
(12-12-2021 06:44 PM)DM48 Wrote:  Gerson, below is part of a python spigot algo my son uses to calculate PI. The range 10,000,000 would need to be reduced a lot for the HP48G. Any thoughts on the best way to program this up in RPL?
...

Hi,

Pi Day 2022 is still a bit away, but this is not a problem. The problem is I do not understand Python. Anyway, I may give it a try later if I figure out how it works.
In Pi Day 2009 Egan Ford presented a comprehensive collection of programs to calculate Pi, including "HP-71B Spigot Forth" (1000 digits in 6720.22 seconds). Perhaps it should be easier to convert that one to RPL.

https://www.hpmuseum.org/cgi-sys/cgiwrap...ead=148399

Regarding the formula in the OP, I've found a nicer one. An RPL program is also offered in the vein "it's slow but it's mine" :-) (357 decimal digits in 3820.207 seconds)

Albert's Python script may be better to use since he found a significant speed increase. Thanks Albert!

I am assuming the HP42s / DM42/ Free 42 wouldn't be appropriate for this type of calculation due to the nature of storing a lot of digits of Pi. Is that a good assumption Albert?

Pi day is a ways off still, but we can't be too prepared. :-)

Gil, thank you for the RPL program. I am going to input this into my 48G and see what happens. I see at least one instruction I am not familiar with. Hopefully, it works. I love to run these on my phone in iHP48 inside a 48GX to see just how fast they can go.

HP48GX user learning the HP42s and DM42.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Happy Pi Day! - Gerson W. Barbosa - 03-14-2020, 02:08 AM
RE: Happy Pi Day! - pinkman - 03-14-2020, 06:19 AM
RE: Happy Pi Day! - Gerson W. Barbosa - 03-14-2020, 02:53 PM
RE: Happy Pi Day! - rprosperi - 03-14-2020, 05:04 PM
RE: Happy Pi Day! - Jim Horn - 03-14-2020, 05:15 PM
RE: Happy Pi Day! - Gerson W. Barbosa - 03-14-2020, 12:17 PM
RE: Happy Pi Day! - Dave Britten - 03-14-2020, 12:47 PM
RE: Happy Pi Day! - BruceH - 03-15-2020, 11:32 AM
RE: Happy Pi Day! - Eddie W. Shore - 03-15-2020, 07:29 PM
RE: Happy Pi Day! - DM48 - 12-12-2021, 06:44 PM
RE: Happy Pi Day! - Albert Chan - 12-12-2021, 11:04 PM
RE: Happy Pi Day! - Gerson W. Barbosa - 12-13-2021, 12:41 AM
RE: Happy Pi Day! - DM48 - 12-13-2021 01:54 AM
RE: Happy Pi Day! - Gil - 12-13-2021, 01:21 AM
RE: Happy Pi Day! - Gerson W. Barbosa - 12-13-2021, 03:57 AM



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