
Page 21-42
we generate a number with units (e.g., 0.01_m^3),
but the tag is lost.
4.
T
‘
1_K
’
*
:
Calculating value of T including S.I. units
5.
n
‘
1_mol
’
*
:
Calculating value of n including units
6.
→
V T n
: The values of V, T, and n, located respectively in
stack levels 3, 2, and 1, are passed on to the next
level of sub-programming.
To see this version of the program in action do the following:
•
Store the program back into variable p by using [
][ p ].
•
Run the program by pressing [ p ].
•
Enter values of V = 0.01, T = 300, and n = 0.8, when prompted (no units
required now).
Before pressing
`
for input, the stack will look like this:
Press
`
to run the program. The output is a message box containing the
string:
Press
@@@OK@@@
to cancel message box output.