Sentry Industries CA756 User Manual
Page 77

121
120
This program calculates the x power of 2. A prompt of “N
=? ” appears for data input. The result is displayed by
pressing
while “x=” is displayed . When an input data is
not the x power of 2, the display “ NO “ appears and
execution returns to the beginning for reinput .
Always follow a message with a whenever a formula
follows the message.
Assuming that the program is stored in P2:
The display is capable of showing up to 12 alpha
characters at one time. For messages that are longer than
12 characters, use (Disp) to divide the message.
Using the graph function within programs makes it possible
to graphically represent long. complex equations and to
overwrite graphs repeatedly. All graph commands (except
the trace function) can be included in programs. Range
values can also be written into the program.
Generally, manual graph operations can be used in
programs without modification.
Graphically determine the number of
solutions (real roots) that satisfy both of
the following two equations.
y=x
4
- x
3
-24x
2
+4x+80
y=10x -30
The range values are as follows.
Xmin : -10 Ymin : -120
Xmax : 10 Ymax : 150
Xscl : 2 Yscl : 50
Messages are also convenient when displaying result in
program calculations .
Lbl, 0, : , " , N , = , " , ? , , B , ~ , C , : ,
0 , ,A , : ,
Lbl , 1 , : ,C , ÷ , 2 , , C ,: ,Frac ,C ,
≠
,0 ,
,Goto ,3 ,
: , Isz , A , : ,C ,= ,1 ,
,Goto ,2 ,: ,Goto , 1 ,: ,
Lbl , 2 , : , " , X ,= ," , , A , , Goto ,0 ,: ,
Lbl , 3 ,: ," ,N ,O , " , , Goto , 0 , 70 steps