242
CHAPTER 12
Typical uses of variables in a program:
1
5 ⇒ X (5
Î
Å
X
): This program line substitutes the value 5 for the
variable X. (“5” is stored in the X memory space.)
2
MX + B ⇒ Y (
Ï
MXÅ+ÅB
ÎÅY
):
This program line substitutes the value “(M × X) + B” for Y. The value of X is entered
from memory.
<Example 1>
Try programming this equation. (Use the program name “SLOPE”.)
Program contents Key operation
SLOPE Press
Ï
C
®
to enter the programming
mode.
Press
S
L
O
P
E
®
to input the title.
Input
M
Ï
A
3
Å
M
®
Input
B
Ï
A
3
Å
B
®
MX+B⇒Y
Ï
M
X
Å
+
Å
B
Î
Å
Y
®
Print
“Y
Ï
A
1
Ï
A
2
Å
Y
®
Print
Y
Ï
A
1
Å
Y
≥
Press
Ï
œ
to end the program.
* Input: this command requests the input of a variable.
Print: this command displays the value of the variable on the screen.
• Execute the program.
1. Press
Ï
A
to search for the program
name “SLOPE”.
2. Press
01
when at address 01, as shown to
the right.
EL-9650-(12)En (239-258) 8/1/00, 9:31 AM242