This problem considers the error when evaluating sin , and the problem seen in Figure 1.3. It is assumed that  is a given real number that is not a floating-point number, and f is its floating-point...


This problem considers the error when evaluating sin
, and the problem seen in Figure 1.3. It is assumed that
 is a given real number that is not a floating-point number, and


f

is its floating-point approximation. Also,
E
is the integer so that 2
E



E
+1 and 2
E




f

≤ 2
E
+1.


(a) Use Taylor’s theorem to show that |sin
 − sin


f

|≤| −


f
|.


(b) The point
 is between two floating-point numbers


f

and


f
, and either


f

=


f

or


f

=


f
. Explain why | −


f

|≤|

f




f

|/2.


(c) Using parts (a) and (b) show that |sin
 − sin


f

| ≤
ε2
E

−1.


(d) Use the result in part (c) to show that if || ≤
 then





(e) When the computer evaluates sin


f

it produces a floating-point number


f
. Assuming that |sin


f




f

| ≤
, show that





(f) When using double precision, what interval − ≤
 ≤
 can you use and be able to guarantee that |sin
 −


f

| ≤ 10−8? How does this value of
 compare with the corresponding result obtained from Figure 1.3?

Nov 25, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here