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



#4

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?


#5

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


#6

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

#7

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.


#8

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,487 12-10-2013, 05:35 PM
Last Post: Erwin Ried
  Problem with debug HP prime program, somebody help me? Carlos CM (Mexico) 6 3,380 12-05-2013, 03:07 PM
Last Post: Carlos CM (Mexico)
  HP PRIME: APP program code DISAPPEARS !! Joseph Ec 0 1,224 11-25-2013, 11:35 AM
Last Post: Joseph Ec
  HP 50g - select characters on the stack, copy/paste Sean Freeman 7 2,754 11-20-2013, 07:11 AM
Last Post: Sean Freeman
  Prime: Program size limited to 64K? Erwin Ried 4 2,059 11-17-2013, 11:42 PM
Last Post: Joseph Ec
  HP-Prime : Extracting elements from a list in RPN Miguel Toro 0 1,630 11-15-2013, 06:44 PM
Last Post: Miguel Toro
  [HP-Prime] Picking elements from a List in a program Jean-Michel 3 2,032 11-15-2013, 04:16 AM
Last Post: dg1969
  HP Prime: Recommendation for future RPN Program Mode BruceTTT 3 2,185 11-13-2013, 10:03 PM
Last Post: BruceTTT
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,738 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 1,995 11-11-2013, 02:19 PM
Last Post: Thomas Radtke

Forum Jump: