56 Using Calculator
This means: Calculate 5+8
3
and store the result as a variable named
num.
4. Press
Enter.
Calculator creates the variable num and stores the result there.
Alternative methods for storing a variable
As alternatives to using & (store), you can use “:=” or the Define
command. All of the following statements are equivalent.
5+8
3
& num
num := 5+8
3
Define num=5+8
3
Checking a variable’s value
You can check the value of an existing variable by entering its name on
the Calculator entry line.
f On the Calculator entry line, type the variable name
num and press
Enter.
The value most recently stored in num displays as the result.
Using a variable in a calculation
After storing a value in a variable, you can use the variable name in an
expression as a substitute for the stored value.
1. Type
4*25*num^2 on the entry line, and press Enter.
Calculator substitutes 517, the value currently assigned to num, and
evaluates the expression.
2. Type
4*25*nonum^2, and press Enter.