[VA] SRC #016 - Pi Day 2024 Special
|
03-16-2024, 03:58 PM
(This post was last modified: 03-16-2024 05:20 PM by Gerson W. Barbosa.)
Post: #6
|
|||
|
|||
RE: [VA] SRC #016 - Pi Day 2024 Special
(03-16-2024 02:34 PM)Juan14 Wrote: Given N, this program calculates the value for the "Second appearance", I no longer have the HP-50g, so I ran it in an emulator. Mine is still running for 20 minutes or so. I guess it’ll take a bit longer than yours as I missed your optimization. « 1 6 FOR n n ALOG 0 1 PICK3 START n ALOG DUP RAND * 1 + IP SWAP RAND * 1 + IP GCD 1 == { 1 + } IFT NEXT SWAP 6. * SWAP / √ NEXT » I’ve used 1 RDZ. Still waiting for the results as I post this. Gerson. P.S.: It took about one and a half hour, but I’ve finally obtained the results. Some optimizations are definitely required. 2.92770021885 3.27326835354 3.17553674414 3.14476811662 3.14494955129 3.14146631543 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)