Post Reply 
[VA] SRC #009 - Pi Day 2021 Special
03-22-2021, 04:06 PM
Post: #36
RE: [VA] SRC #009 - Pi Day 2021 Special
Thanks, robve, nice to see the algorithm expressed in so many languages. For completeness here is an RPL version:

\<< 2 \v/ DUP 2 /
DO SWAP 2 + \v/ SWAP OVER * 2 /
UNTIL OVER 2 \>=
END SWAP DROP 2 SWAP /
\>>

It gets the result 3.1415926536 after 19 iterations. Takes about 1.2 seconds on an HP-28S.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC #009 - Pi Day 2021 Special - John Keith - 03-22-2021 04:06 PM



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