RPN Power 48 manual · Chapter 8 of 20
Variables and the VAR menu
Store, recall, evaluate and purge named variables, and use the VAR menu soft keys.
8.1Names#
A name is an object between single quotes, such as 'x'. Names can hold letters and digits and must start with a letter. Press ', lock alpha, type the name, unlock alpha and press ENTER. A name that holds no value stays on the stack as a name; one that holds a value is replaced by the value when evaluated.
Put a name on the stack
Quote, alpha lock, x, alpha, ENTER.
'αα◀1/x÷αENTER

1: 'x'8.2Store a value in a variable#
Put the value on level 2 and the name on level 1, then press STO▶. The stack is emptied of both. To get the value back, put the name on the stack and press left shift STO▶ (RCL), or just press the variable's soft key in the VAR menu.
- value
- ENTER
- name in quotes
- ENTER
- STO▶
Store 7 in a variable called a
Type 7, enter the name, press STO. Open VAR to see the new variable.
7'αα◀F1αENTERSTO▶VAR

aRecall it with RCL
Store 7 in a.
7'αα◀F1αENTERSTO▶Enter the name and press left shift STO (RCL).
'αα◀F1αENTER◀RCLSTO▶

1: 7Recall it with the VAR menu
Store 5 in a, open VAR and press the variable soft key.
5'αα◀F1αENTERSTO▶VARF1

1: 5Use a variable in a calculation
Store 2 in a, then compute a + 5 by evaluating the expression.
2'αα◀F1αENTERSTO▶'αα◀F1α+5ENTEREVAL

1: 78.4Delete a variable#
Put the name on the stack and press right shift STO▶ (PURGE). The variable is removed.
Purge a variable
Store 7 in a, then purge it.
7'αα◀F1αENTERSTO▶'αα◀F1αENTER▶PURGESTO▶Open the VAR menu: it is empty.
VAR

1:Recalling a missing variable
Try to recall a name that holds nothing.
'αα◀ASINSINαENTER◀RCLSTO▶

Undefined Name8.5Directories#
HOME is the top directory. Put a name on the stack and run CRDIR (APPS, then NXT twice, then MEM) to make a directory inside the current one; it appears in the VAR menu like a variable. Its soft key enters it, and the status line shows the path, for example { HOME A }. Variables you store there stay there. A name is looked for in the current directory first and then in each directory above, so everything stored in HOME can be used from inside. UPDIR goes up one level, HOME goes to the top, PATH returns the path as a list, and PGDIR purges a directory with everything in it (PURGE refuses a directory that is not empty). A value cannot be stored under the name of a directory (Directory Not Allowed): purge the directory first. Directories are saved with the calculator.
Make a directory
Type the name A.
'ααF1αENTEROpen APPS, press NXT twice, then MEM (second key) and CRDIR (first key).
APPSNXTNXTF2F1Open VAR: the new directory A is listed.
VAR

AEnter it and come back
Make the directory A as before.
'ααF1αENTERAPPSNXTNXTF2F1Open VAR and press the soft key of A: the status line now shows { HOME A }.
VARF1Open MEM and press PATH (fifth key): the path is a list.
APPSNXTNXTF2F5

{ HOME A }HP 48 and HP 50g is a trademark of HP Inc.. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by HP. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.



