Download  Print this page

Recalling A Program Variable; Evaluating A Program Variable - HP -28S Manual

Advanced scientific calculator.
Hide thumbs

Advertisement

Recalling a Program Variable
For this example, rename the variable B to C.
Put the old name and the new name on the stack.
CJ
B
1
ENTER
I
CJ c
1
ENTER
I
Recall the program RENAME.
CJ
RENA
.1
RCL
I
3:
151
2:
I
B
I
1:
I
C
I
m::IiI _ _ _ _ _ _
2:
I
C
I
1:
«
OVER RCL ROT PURGE
SWAP STO
"
m::IiI _ _ _ _ _ _
For any variable, RCL simply returns the contents of the variable to
the stack.
Evaluating a Program Variable
To execute a program on the stack you must
explicitly
evaluate it.
3:
133
2:
133
1:
151
. . m::IiI _ _ _ _
The USER menu shows that B was renamed to C.
It
wasn't necessary to recall the program to the stack for execution,
but it demonstrated how RCL works for programs and how EVAL
causes programs to execute. Next you'll see the easy way to execute
your program.
This time you'll rename C to D. Put the old name and the new name
on the stack.
CJ
c
1
ENTER
I
CJ
D
LfuiliJ
3:
151
2:
I
C
I
1:
I
D
I
. . m::IiI _ _ _ _
56
3: Using Variables
I

Advertisement

Table of Contents

   Also See for HP HP-28S

   Related Manuals for HP HP-28S

Comments to this Manuals

Symbols: 0
Latest comments: