You are on page 1of 2

Motilal Nehru National Institute of Technology Name:

Civil Engineering Department Roll No.:


Computer Based Numerical techniques (CE-13102)
Date: 06-09-2019 Quiz-1 Total = 50 Marks
Q1. Mark the statements as True of False. (Write True or False to the left of the statement only) (16 Marks)
a. Precision refers to how closely a computed or measured value agrees with the true value [FALSE]
b. Uncertainty refers to the magnitude of the scatter. [TRUE]
c. True value = approximation – error [FALSE]
d. Roundoff errors arise because digital computers cannot represent some quantities exactly[TRUE]
f ( xi +1 ) − f ( xi −1 )
e. The formula f  ( xi ) = has error in the order of o(h2) [TRUE]
2h
f. Truncation error can be found by subtracting the total numerical error from the roundoff error[FALSE]
g. All open methods require only one initial guess for finding roots of equation. [FALSE]
h. The modified False position method is used for overcoming the issue of the multiple roots[FALSE]

Q2. If True value is 0.4516, the approximated value is 0.4116, then calculate the (8 Marks)
(a) True Error

ET = True Value - Approximate Value


ET = 0.4516 − 0.4116
ET = 0.04

(b) True relative Error


True Value - Approximate Value
ETr =
True Value
0.4516 − 0.4116
ETr =
0.4516
ETr = 0.08857

(c) True absolute relative Error


True Value - Approximate Value
ETr =
True Value
0.4516 − 0.4116
ETr =
0.4516
ETr = 0.08857

(d) True absolute percentage Error


True Value - Approximate Value
ETp = 100  %
True Value
0.4516 − 0.4116
ETp = 100  %
0.4516
ETp = 88.57%

1
Q3. Solve using Bisection method (Show only 3 Iterations) f ( x) = x3 − 2 x − 5 start with initial guesses
(xl=-6, xu=4). Write results up to 4 decimal places. (6 Marks)
It. No. XL Xu Xm f(xL) f(xm) Ea

1 -6 4 -1 -209 -4 -

2 -1 4 1.5 -4 -4.625 166.66%

3 1.5 4 2.75 -4.625 10.2968 45.45%

Q4. Solve using Fixed point Iteration: x3 = sin x start with initial guess: x=1. Show at least 6 iterations.
Choose your own formation for G(x). The true root is, x=0.9286 (20 Marks)
Make sure that True error reaches below 5%

(
Solution-1: g ( x ) = sin ( x ) )
1/3

It. No. x G(x) Et (True Error)

1 1 0.9441

2 0.9441 0.9322 1.6692%

3 0.9322 0.9294 0.3876

4 0.9294 0.9288 0.086

5 0.9288 0.9287 0.02153

6 0.9287 0.9286 0.01076

You might also like