Prime: Placing more than 1 item on the RPN stack in a single program?


I am trying to write a program that decomposes a list and places
the elements on the stack in RPN mode. The RETURN command apparently
can only place one item on the stack and then exits the program. Is there a way to put more
than one item on the stack from within a single program?


Currently . . . not to my knowledge.

(That is only one of the reasons why I keep using the 50G for *real* work, and the HP Prime just for fun!)


I was afraid of that. The limited functionality of RPN in the
HP Prime has renewed my fondness for my old HP49G+.


Is there a way to put more
than one item on the stack from within a single program?

Yes and no. On separate stack levels: no. As a list containing multiple items: yes. Some of my programs return lists for exactly that reason: I want more than a single output. It's not what we REALLY want, but at least it works.

Another option is for the program to store results in variables. Big upside: you can use them in further calculations with very few keystrokes (e.g. ALPHA A). Big downside: You don't see them immediately.



As I stated in similar post, it would be nice if at least 'OBJ->' were implemented in RPN entry. As it is now, you can compose a list (->LIST) but you cannot decompose it in RPN mode.



Possibly Related Threads...
Thread Author Replies Views Last Post
  Sending little images to the Prime (...and Program name bug?) Erwin Ried 19 2,074 12-10-2013, 05:35 PM
Last Post: Erwin Ried
  Problem with debug HP prime program, somebody help me? Carlos CM (Mexico) 6 991 12-05-2013, 03:07 PM
Last Post: Carlos CM (Mexico)
  HP PRIME: APP program code DISAPPEARS !! Joseph Ec 0 300 11-25-2013, 11:35 AM
Last Post: Joseph Ec
  HP 50g - select characters on the stack, copy/paste Sean Freeman 7 879 11-20-2013, 07:11 AM
Last Post: Sean Freeman
  Prime: Program size limited to 64K? Erwin Ried 4 604 11-17-2013, 11:42 PM
Last Post: Joseph Ec
  HP-Prime : Extracting elements from a list in RPN Miguel Toro 0 452 11-15-2013, 06:44 PM
Last Post: Miguel Toro
  [HP-Prime] Picking elements from a List in a program Jean-Michel 3 571 11-15-2013, 04:16 AM
Last Post: dg1969
  HP Prime: Recommendation for future RPN Program Mode BruceTTT 3 555 11-13-2013, 10:03 PM
Last Post: BruceTTT
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 769 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 663 11-11-2013, 02:19 PM
Last Post: Thomas Radtke

Forum Jump: