Post Reply 
Perform two successive binary operations on same input
02-23-2020, 04:10 PM
Post: #6
RE: Perform two successive binary operations on same input
On the hp50g, I've done this several way depending on the desired operations. Sometimes I do things like (assuming two operands on the stack):
MAX LASTARG MIN
In other cases:
DUP2 "ops leaving single result" UNROT

I often need things like IDIV2 but that's so slow that IQUOT (or even / FLOOR) and MOD with LASTART or DUP2 are much faster.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Perform two successive binary operations on same input - ttw - 02-23-2020 04:10 PM



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