0% found this document useful (0 votes)
30 views3 pages

Practice Questions Solution Lecture 1-3

Question

Uploaded by

tasbihahussain23
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)
30 views3 pages

Practice Questions Solution Lecture 1-3

Question

Uploaded by

tasbihahussain23
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/ 3

Practice Questions for Lecture No.

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

Thus, (80)10  (1010000)2 .

Question 2:

Convert the binary number (11001100)2 to its decimal equivalent.


Solution:

(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

Error  0.0000056  0.0000056


Error 0.0000056
Relative Error = 
True Value 4.123105625
 0.00000136

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

f (0)  (0) 3  (0) 2  2(0)  1  1


f (1)  (1) 3  (1) 2  2(1)  1   1

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

Here, f (1) f (2)  0 so the root lies between x = 1 and x =2.

Let’s take x0 1, x1  2


1 2
x2   1.5
2
f (1.5)  (1.5) 4  (1.5)  10  6.4375
Now,
f (2). f (1.5)  0
so,
1.5  2
x3   1.75
2
f (1.75)  (1.75) 4  (1.75)  10  2.37

Thus, the approximate root of the given equation is 1.75.


----------------------------------------------------------------------------------

You might also like