-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Tablets and Mobile Devices Archive
- hp prime - using stack in program

Create an account on the HP Community to personalize your profile and ask a question

11-21-2013 03:11 PM
11-21-2013 04:26 PM - edited 11-21-2013 04:30 PM
Hi,
Unfortunately you can't write RPN style programs on the Prime, only HP Prime Basic programs.
For example if you have two values on the stack the following program will return the division of the values:
EXPORT PROG1(A,B)
BEGIN
RETURN A/B;
END;
Note that currently only one value can be returned to the stack. You can return multiple values in a list, but not on separate stack levels.
_________________________________________________________
calculator enthusiast
11-21-2013 05:40 PM - edited 11-21-2013 05:50 PM
That happens when you run it from the program menu. If you run it from the HOME screen (type PROG1 then ENTER) it will take values from the stack and return the answer. It can also be run from the Home screen by pressing Toolbox then User softkey then select PROG1, press ENTER with empty ().
_________________________________________________________
calculator enthusiast
