Sharp PC-1403 Operation Manual page 210

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

204
This is the value of the
expression.
0.38
And last of
all,
the
division
is performed:
38/100
The exponentiation is done next:
38/10 "'2
Now
that
the parentheses are
cleared,
the LOG function has the highest
priority
so it is
done
next:
38/10 "'LOG 100
or:
(38)/1 0
"'
LOG 100
And
then
the
addition:
(36+2)/10 "LOG 100
(6*6+2)/10 "LOG 100
In
the next set of parentheses, it would do
the
multiplication first:
or:
((6)*6+2)/10"'
LOG 100
Then
it
would do
subtraction:
((8-2)*6+2)/10
"'
LOG 100
The
COMPUTER
would first evaluate
the
innermost set
of parentheses.
Since
'+'
and
'-'
are at the same
level, i
t would move
from
left to right
and
would do the
addition
first:
((3+5-2)*6+2)/10
"'LOG 100
Starting
with
the
expression:
Sample Evaluation
For
levels 3
and
4,
the last entry has a higher
priority.
For
example:
-2"'
4 ~ -(2
4)
3"'
-2
~
3-
2
APPENDIXD
Expression
Evaluation
and Operator
Priority

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents