HP 15c User Manual

Page 148

Advertising
background image

148

Appendix: Accuracy of Numerical Calculations

148

0 < x < 1 above. When R(x) is squared 50 times to produce F(x) = S(R(x)), the result is clearly
1 for x ≥ 1, but why is F(x) = 0 for 0 ≤ x < 1? When x <1,

 

 

.

48898

10

14

.

6

50

2

10

10

1

9999999999

.

0

s

x

R

s

This value is so small that the calculated value F(x) = S(R(x)) underflows to 0. So the
HP-15C isn't broken; it is doing the best that can be done with 10 significant digits of
precision and 2 exponent digits.

We have explained example 1 using no more information about the HP-15C than that it
performs each arithmetic operation ¤ and x and fully as accurately as is possible within
the limitations of 10 significant digits and 2 exponent digits. The rest of the information we
needed was mathematical knowledge about the functions f, r, and s. For instance, the value
r(10

100

) above was evaluated as

2

13

13

13

50

50

100

2

1

100

100

)

10

045

.

2

(

2

1

)

10

045

.

2

(

1

)

10

045

.

2

exp(

2

)

10

ln(

100

exp

2

)

10

ln(

exp

)

10

(

)

10

(

5 0

r

by using the series

.

3

6

1

2

2

1

1

)

exp(

z

z

z

z

Similarly, the binomial theorem was used for

 

 

.

2

10

10

2

1

10

10

8

1

10

2

1

1

10

1

9999999999

.

0

These mathematical facts lie well beyond the kind of knowledge that might have been
considered adequate to cope with a calculation containing only a handful of multiplications
and square roots. In this respect, example 1 illustrates an unhappy truism: Errors make
computation very much harder to analyze. That is why a well-designed calculator, like the
HP-15C, will introduce errors of its own as sparingly as is possible at a tolerable cost. Much
more error than that would turn an already difficult task into something hopeless.

Example 1 should lay two common misconceptions to rest:

Rounding errors can overwhelm a computation only if vast numbers of them

accumulate.

A few rounding errors can overwhelm a computation only if accompanied by massive

cancellation.

Advertising