Page 21-42
2. ‘1_m^3’ : The S.I. units corresponding to V are then placed in
stack level 1, the tagged input for V is moved to
stack level 2.
3. * : By multiplying the contents of stack levels 1 and 2,
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: