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



#2

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?


#3

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!)


#4

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

#5

Quote:
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.


#6

Hi,

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.

Regards,

Miguel


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

Forum Jump: