0% found this document useful (0 votes)
39 views

Mod 03 Quiz 01aae Sourceserror Answers

This document contains solutions to multiple choice problems about sources of error in computing. It addresses different types of errors like truncation error and rounding error. Some key points made in the solutions: - Truncation error occurs when approximating mathematical procedures using a finite number of terms. - Rounding vs chopping affects the calculation of products involving numbers with limited significant figures. - The truncation error in calculating an integral using the left Riemann sum approximation was found to be 972. - Registering the number 1 in a 6-bit fixed register results in a accumulated error of 0.00625 every tenth of a second, totaling to 5400 over one day.

Uploaded by

Jet Gamez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Mod 03 Quiz 01aae Sourceserror Answers

This document contains solutions to multiple choice problems about sources of error in computing. It addresses different types of errors like truncation error and rounding error. Some key points made in the solutions: - Truncation error occurs when approximating mathematical procedures using a finite number of terms. - Rounding vs chopping affects the calculation of products involving numbers with limited significant figures. - The truncation error in calculating an integral using the left Riemann sum approximation was found to be 972. - Registering the number 1 in a 6-bit fixed register results in a accumulated error of 0.00625 every tenth of a second, totaling to 5400 over one day.

Uploaded by

Jet Gamez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Problem Set#1

Multiple Choice Test


Chapter 01.03 Sources of Error
COMPLETE SOLUTION SET

1. Truncation error is caused by approximating


(A) irrational numbers
(B) fractions
(C) rational numbers
(D) exact mathematical procedures.

Solution
The correct answer is (D).

Truncation error is related to approximating mathematical procedures. Examples include


using a finite number of terms of a Taylor series to approximate transcendental and
trigonometric functions, the use of a finite number of areas to find the integral of a
function, etc.
2. A computer that represents only 4 significant digits with chopping would calculate
66.666*33.333 as
(A) 2220
(B) 2221
(C) 2221.17778
(D) 2222

Solution
The correct answer is (B).

66.666 ≈ 66.66
33.333 ≈ 33.33

66.66 × 33.33 = 2221.7778


≈ 2221
3. A computer that represents only 4 significant digits with rounding would calculate
66.666*33.333 as
(A) 2220
(B) 2221
(C) 2221.17778
(D) 2222

Solution
The correct answer is (D).

66.666 ≈ 66.67
33.333 ≈ 33.33

66.67 × 33.33 = 2222.1111


≈ 2222
f (x + h ) − f (x )
4. The truncation error in calculating f ′(2 ) for f ( x ) = x 2 by f ′( x ) ≈
h
with h = 0.2 is
(A) -0.2
(B) 0.2
(C) 4.0
(D) 4.2

Solution
The correct answer is (A).
The approximate value of f ′( 2) is
f ( x + h) − f ( x)
f ′( x ) ≈
h
x = 2, h = 0 . 2

f ( 2 + 0.2) − f ( 2)
f ′( 2) ≈
0.2
f (2.2) − f (2)
=
0.2
2.2 − 2 2
2
=
0.2
= 4.2
The true value of f ′(2 ) is
f (x ) = x 2
f ′( x ) = 2 x
f ′(2 ) = 2 × 2
=4
Thus, the true error is
Et = True Value - Approximate Value
= 4 − 4.2
= −0.2
9

∫ x dx
3
5. The truncation error in finding using LRAM (left end point Riemann
−3

approximation method) with equally portioned points − 3 < 0 < 3 < 6 < 9 is
(A) 648
(B) 756
(C) 972
(D) 1620

Solution
The correct answer is (C).

Graph of f(x)=x3 for LRAM Approximation

800
700
600
500
400
f(x)

300
200
100
0
-3 -100 0 3 6 9
x

LRAM = f (−3) × 3 + f (0) × 3 + f (3) × 3 + f (6) × 3


= (−3) 3 × 3 + (0) 3 × 3 + (3) 3 × 3 + (6) 3 × 3
= −81 + 0 + 81 + 648
= 648

9 9
 x4 
∫  4 
3
x =
−3 −3

 9 4 − ( −3) 4 
= 
 4 
= 1620
Truncation Error = True Value – Approximate Value (if there is no round-off error)
= 1620 − 648
= 972
6. The number 1 is registered in a fixed 6 bit-register with all bits used for the
10
fractional part. The difference is accumulated every 1 th of a second for one day. The
10
magnitude of the accumulated difference is
(A) 0.082
(B) 135
(C) 270
(D) 5400

Solution
The correct answer is (D).

Number Number after decimal Number before decimal


0.1 × 2 0.2 0.2 0
0.2 × 2 0.4 0.4 0
0.4 × 2 0.8 0.8 0
0.8 × 2 1.6 0.6 1
0.6 × 2 1.2 0.2 1
0.2 × 2 0.4 0.4 0
0.4 × 2 0.8 0.8 0
0.8 × 2 1.6 0.6 1
0.6 × 2 1.2 0.2 1

(0.1)10 ≅ (0.000110011)2
Hence
(0.1)10 ≅ (0.000110)2 in a six bit fixed register.
(0.000110)2 = 0 × 2 −1 + 0 × 2 −2 + 0 × 2 −3 + 1 × 2 −4 + 1 × 2 −5 + 0 × 2 −6
= 0.09375
The difference (true error) between 0.1 and 0.09375 is
= 0.1 − 0.09375
= 0.00625
The accumulated difference in a day is then
= 0.00625 × 10 × 60 × 60 × 24
= 5400

You might also like