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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:03 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:53 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 01:55 AM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 07:34 AM
RE: Perform two successive binary operations on same input - Csaba Tizedes - 02-23-2020, 09:39 AM
RE: Perform two successive binary operations on same input - ttw - 02-23-2020 04:10 PM
RE: Perform two successive binary operations on same input - cdmackay - 02-23-2020, 05:23 PM
|
User(s) browsing this thread: 3 Guest(s)