Post Reply 
Pi Approximation Day
07-23-2022, 05:18 PM (This post was last modified: 07-23-2022 05:30 PM by C.Ret.)
Post: #12
RE: Pi Approximation Day
(07-23-2022 03:41 PM)Gerson W. Barbosa Wrote:  
(07-23-2022 03:18 PM)C.Ret Wrote:  Is this a specific HP-42S trick, does memory recall arithmetic modify the LAST register?
Yes, it does, unlike memory store arithmetic:

Thank you for your quick response; this is a different behavior from the HP-15C memory recall arithmetic logic. That explain why I was so lost.

001 LBL "WLP
002 10
003 ENTER^
004 LBL 00
005 RCL Y
006 X^2
007 LASTX
008 +
009 -3
010 Y^X
011 -
012 DSE Y
013 GTO 00
014 SQRT
015 END


With FIX 7 display format, this little program give a better approximation of PI than 22/07.
Surprisingly, the number of instructions is the same as Valentin Albillo's original code.

\( \sqrt{10-\frac{1}{\left ( 10^2+10 \right )^3}-\frac{1}{\left ( 9^2+9 \right )^3}-\frac{1}{\left ( 8^2+8 \right )^3}-\cdots -\frac{1}{\left ( 2^2+2 \right )^3}-\frac{1}{\left ( 1^2+1 \right )^3}} = \sqrt{ \frac{2\,780\,722\,699}{281\,746\,080} } \approx \pi \)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Pi Approximation Day - Gerson W. Barbosa - 07-22-2022, 11:47 PM
RE: Pi Approximation Day - J-F Garnier - 07-23-2022, 11:44 AM
RE: Pi Approximation Day - C.Ret - 07-23-2022, 03:18 PM
RE: Pi Approximation Day - C.Ret - 07-23-2022 05:18 PM
RE: Pi Approximation Day - Steve Simpkin - 07-24-2022, 11:59 AM
RE: Pi Approximation Day - Thomas Klemm - 07-23-2022, 02:20 AM
RE: Pi Approximation Day - J-F Garnier - 07-23-2022, 07:00 AM
RE: Pi Approximation Day - Albert Chan - 07-23-2022, 10:56 AM
RE: Pi Approximation Day - vaklaff - 07-23-2022, 11:26 AM
RE: Pi Approximation Day - Thomas Klemm - 07-23-2022, 06:46 PM
RE: Pi Approximation Day - Didier Lachieze - 07-23-2022, 09:09 PM
RE: Pi Approximation Day - Thomas Klemm - 07-24-2022, 07:03 AM
RE: Pi Approximation Day - Dan C - 07-24-2022, 09:37 AM
RE: Pi Approximation Day - Dan C - 07-24-2022, 11:29 AM
RE: Pi Approximation Day - Thomas Klemm - 07-24-2022, 11:30 AM
RE: Pi Approximation Day - Ajaja - 07-24-2022, 01:28 PM
RE: Pi Approximation Day - Thomas Klemm - 07-24-2022, 03:52 PM
RE: Pi Approximation Day - Albert Chan - 07-24-2022, 07:13 PM
RE: Pi Approximation Day - pauln - 07-24-2022, 06:39 PM
RE: Pi Approximation Day - EdS2 - 07-24-2022, 09:10 PM
RE: Pi Approximation Day - pauln - 07-24-2022, 11:27 PM
RE: Pi Approximation Day - Thomas Klemm - 07-24-2022, 10:16 PM
RE: Pi Approximation Day - Albert Chan - 07-25-2022, 12:03 AM
RE: Pi Approximation Day - Thomas Klemm - 07-25-2022, 06:38 AM
RE: Pi Approximation Day - Thomas Klemm - 07-25-2022, 09:28 PM
RE: Pi Approximation Day - Albert Chan - 07-26-2022, 12:51 AM
RE: Pi Approximation Day - pauln - 07-26-2022, 01:27 AM
RE: Pi Approximation Day - Albert Chan - 07-26-2022, 12:27 PM
RE: Pi Approximation Day - Thomas Klemm - 07-26-2022, 05:24 AM
RE: Pi Approximation Day - Thomas Klemm - 07-26-2022, 01:38 PM
RE: Pi Approximation Day - EdS2 - 08-03-2022, 04:53 PM
RE: Pi Approximation Day - Thomas Klemm - 08-07-2022, 11:42 AM



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