A
ll
and more about Sharp PC-1500
at
http://www.PC-1500.info
Input
Display
( ( 6 - 4) I
21
* ( ( ( 3 - 1
l/
4)
*6
)
f
EH
TEstl
3
Th
e
eq
uat
i
ons
'1,V
it
hi
n the inner
mo
st
s
et
of
pare
nt
heses wi
ll
ah'Y'ays
be
cal
culated
first.
REMEMBER: When in
do
ubt.
use parentheses
to
cla
ri
fy
the
ord
er
of
your
arithmetic
operations
.
G.
LOGICAL COMPARISONS AND INEQUALITIES
SHARP
If
.J
i
ll
an
-0
..
~1
you
to
cornparc t
..
-.io values or equations a
nd
.,,..,
ill indicate
to
yo
u the result of
the cornparis
on.
This
abilit
y is
bas
ic
to
designing
pro
grams w
hi
ch
make decisions. The manner in
\vh
ic
h this is
do
11
e
,_.,ill
be recog
ni
zable to
st
ud
en
ts
of
the
"N
ew
Ma
th"
as
an inequality
(don
't
despair
if
you
~·,.1
c rcn
'
t
raised
on
Ne
i.-v
Math; the au thor
\'>"
asn
't
either).
An inequal
ity
may be
th
oug
ht
of
as
a com
pa
ri
son w
hich
is either t
n.re
or
false.
For
instanc
e,
th
e sta
te
me
nt
"s
ix divided by
th
re
e
is
eq
ual
to
l\vo" is a
co
rnparison
..
'lhich h
appens
to
be
t
ru
e.
On
the
other
ha
nd .
the
sta
tement
,
"s
ix divided
by
thr
ee
is gre
at
er
tha
n fi
ve"
is a f
alse
co
mp
arison.
Com
pute
rs
and m
at
he
mat
icians use
th
e f
ol
l
ow
ing sy
mbols
for
the
possible
type
s of corn·
parisons:
<
less
tha
n
>
greater
th
an
~
equa
l
to
< =
less
th
an
OR
e(1ual
to
> =
gr
ea
ter t
han
0 R
equal
to
< >
n
ot
equa
l
to
Thu
s,
we
can
res
tate
t
he
above in
equa
li
ties
symbol
i
ca
ll
y, as: 6 I 3 = 2 and 6 I 3 > 5 respec·
tively.
Given
an
ineq
uality,
Sl-IA
RP
..
vi
ii
de
t
er
m
in
e
v1
hethc
r
the
co
mp
arison is tr
ue
or false . In
keeping wi
th
cur
re
nt
compute
r design
prac
tice.
SHARP
w
ill
indic
ate
a tr
ue
state
rn
ent
\vith a 1
and
a fal$e
11a1eme111
wilh a 0.
Fo
r e
xa
mple
if
yo
u
ty
pe
:
6 / 3 = 2
SHA RP wi
ll
rc-spond \vith a 1 tfor true). T
yp
ing the sequence:
6 / 3 > 5
wi
ll
elicit a r
espons
e
of
0 (f
or
false).
Try the foll
ow
ing tests
of
SHARP's
jud
gme
nt
(be s
ur
e
you
are in RUN
model
:
18
Do
not sale this PDF
!!!