[VA] SRC #016 - Pi Day 2024 Special
|
03-17-2024, 01:45 AM
Post: #9
|
|||
|
|||
RE: [VA] SRC #016 - Pi Day 2024 Special
(03-16-2024 04:56 PM)C.Ret Wrote: And since I have my HP-71B in hands, I modestly present you my attempt for the second apparence: As far I can see there’s nothing wrong with your code. Also, CEIL(N*RND) is more compact than 1+IP(N*RND). Here’s another RPL program for the hp 50g using yours and Juan’s ideas: « 0 DUP 5 FOR k k DUPDUP ALOG SWAP I→R SIGN + SWAP 1 + ALOG DUP UNROT FOR n RAND OVER * CEIL RAND PICK3 * CEIL GCD 1 == ROT + SWAP NEXT 6. * OVER / √ SWAP NEXT DROP » 1 RDZ TEVAL -> 2.92770021885 3.21633760451 3.18088727321 3.15074602744 3.14505324234 3.14173762276 :s: 851.5912 (time on the iHP48 emulator) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)