Practice Questions Solution Lecture 1-3
Practice Questions Solution Lecture 1-3
1-3
Question 1:
Convert the decimal number 80 into its binary equivalent.
Solution:
2 80 Remainder
2 40 0
2 20 0
2 10 0
2 5 0
2 2 1
1 0
Question 2:
(11001100)2 1 27 1 26 0 25 0 24 1 23 1 22 0 21 0 20
128 64 0 0 8 4 0 0
204
Thus,
(11001100)2 (204)10
Question 3:
Find the relative error when 17 is considered upto four decimal places.
Solution:
True value = 4.123105625
Computed value =4.1231
Question 4:
Find the interval in which atleast one root of the equation x 3 x 2 2 x 1 0 lies.
Solution:
Given equation is
x3 x2 2 x 1 0
Using intermediate value property, we will find any two values of x such that the function has
open signs on these two values. It will give us the confirmation that atleast one root lies between
these two values.
We have
Since f (0). f(1) 0 this gives us the confirmation that atleast one root lies between x=0 and x= 1,
thus, the desired interval is [0,1].
Question 5:
Find the real root of the equation x 4 x 10 0 in the interval [1, 2] by bisection method upto
two iterations.
Solution:
Given that
f ( x) x 4 x 10 [1, 2]
f (1) (1) 4 1 10 10
f (2) (2) 4 2 10 4