The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
HP48 programming: use values from stack in expression
11-30-2018, 02:47 PM
Post: #1
HP48 programming: use values from stack in expression
Hello all

I'm trying to write a simple program for the HP48. The program should take two values from the stack and put an expression back on the stack that contains these values. For example: take 2 and 3 and return '2+3'.

With 2 and 3 as input, I tried << -> a b 'a+b' >> which returns 5 and << -> a b << 'a+b' >> >> which returns 'a+b'. And << -> a b << 'a+b' EVAL >> >> returns 5 again (of course)...

Thanks for any help!
Beat
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP48 programming: use values from stack in expression - Beat - 11-30-2018 02:47 PM



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