Tests Of Comparison (Tests) - HP -32S Owner's Manual

Rpn scientific calculator
Table of Contents

Advertisement

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:
x f y
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 number in 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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents