Post Reply 
4-level stack manipulation on 12c
03-04-2015, 02:47 PM (This post was last modified: 03-04-2015 02:48 PM by Katie Wasserman.)
Post: #23
RE: 4-level stack manipulation on 12c
(03-04-2015 01:31 PM)Don Shepherd Wrote:  I guess I should document the reason that I wanted to get 5, 17, 5, and 17 on the stack in the first place. I wanted a little MOD function for my 12c and I realized if I arranged these numbers in the stack in that order, a simple \(\div\) INT \(\times\) - would give me the standard formula for MOD: 17-(int(17/5)x5). So the final 12c program is (after entering 17 in Y and 5 in X):

ENTER
ENTER
-
RDown
X<->Y
LastX
\(\div\)
INT
\(\times\)
-


Many thanks Werner.


Don,

This has come up a few time before, MOD is a missing function on the older HP calculators. Here are a couple of old threads giving some more ideas, but not limited to the 12c.

http://www.hpmuseum.org/cgi-sys/cgiwrap/...read=26358

http://www.hpmuseum.org/cgi-sys/cgiwrap/...ead=195228

-katie

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 4-level stack manipulation on 12c - Katie Wasserman - 03-04-2015 02:47 PM



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