EasyManua.ls Logo

HP HP-32S - Tests of Comparison (TESTS)

HP HP-32S
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Tests
of
Comparison
(TESTS)
There are eight comparisons available for programming in the
TESTS
menu. Pressing Hi
tests
I displays the two categories of tests:
xfy
X?0
For
tests
comparing x and y.
or
tests
comparing
x
and
0.
Remember that x refers to the number in the
X-register,
and y refers
to the numberin the
Y-register.
These
do
not
compare
the
variables
X
and
Y.
Select
the
category
of
comparison,
then
press
the menu key for the
conditional instruction you want:
The
TESTS
Menu
Keys
{*?>"}
{*?0}
{*y}
for x*y*>
{*0}
for
x*0?
{<y}
for
x<y?
{<©}
for
*<0?
{>y}
for
x>y?
{>0}
for
x>0?
{-y}
for
x=y?
{=0}
for
x=0?
Although
you
can
display
these
menus
outside
of
program
entry,
these functions have no purpose outside of programs.
For Example: The 'Quadratic Equation" program on page 191 in
part
4
uses
the
x=0?
and
x<0?
conditionals
in
routine
Q.
Q01
LBL
Q
Q02
INPUT
fl
Q03
x=0?
Q04
GTO
Q
Q05
INPUT
B
Checks the validity of A, which cannot be
zero.
If A = 0,
then
the
program starts over.
If A
¥*
0,
then
the program continues.
96
6:
Programming
Techniques

Table of Contents

Related product manuals