Professional Documents
Culture Documents
Quiz 01aae Sourceserror Answers
Quiz 01aae Sourceserror Answers
Solution
The correct answer is (D).
Solution
The correct answer is (B).
66.666 ≈ 66.66
33.333 ≈ 33.33
Solution
The correct answer is (D).
66.666 ≈ 66.67
33.333 ≈ 33.33
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).
800
700
600
500
400
f(x)
300
200
100
0
-3 -100 0 3 6 9
x
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).
(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