IR/SI
X=-3.3333E-7
Calculates
the
second
Q36
GTO
Q
root.
IM
PRGM I
Switches to program
Q12
x<0?
entry.
•IGT0M-IQ12
Moves program pointer
to
line
Q12.
S3
Qll
CF
0
Deletes
line
Q12.
•I
TESTS
|
{*?0>
Adds
the
conditional
{>0}
Q12
x>0?
test
x>01.
m
-3.3333E-7
Cancels program entry.
IXEQIQ
R71.0000
Starts program.
I
R/S11R/SI
Skips data entry since
values are already
stored.
| R/S |
X=0.0000
Calculates
first
root
us
ing previous inputs.
|
R/S
|
DIVIDE
BY
0
Attempts
to
compute
second
root.
As
you
can
see,
the
results
of a
simple
change
in the
order
of
calcula
tion can be quite significant.
Ifyousubstitute the
first
values
calculated
backintothe
equation,
you
will find that the left-hand side of the equation is zero for the root of
smaller absolute value (asit theoreticallyshould be) and 1 for the root
of
larger
absolute
value.
Does
this mean that the
result
of
—3,000,000.0000 is incorrect?The answer to this question is a quali
fied
no.
If
you
increment
or
decrement
this
value
byone
count
in the
least
significant
digit
and
substitute
the
result
back
into the
original
equation,
then the left-hand side will be 31 or
—29.
Thus,
—3,000,000.0000,
while not being
exactly
correct,
is the
best
possible
12-digit
result
that could be generated.
12:
Mathematics
Programs
197