Post Reply 
Micro challenge: improve this RPN code
12-18-2019, 04:53 PM
Post: #2
RE: Micro challenge: improve this RPN code
I don't know 29C, but seems you can save code by (a+b)/2 = b + (a-b)/2

Example, for HP12C, a=10, b=2

10 Enter 2

STO 1     ; M1=b
-
2
/
STO 2     ; M2 = (a−b)/2
STO+ 1   ; M1 = (a+b)/2
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Micro challenge: improve this RPN code - Albert Chan - 12-18-2019 04:53 PM



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