GATE | GATE CS 2012 | Question 26
The bisection method is applied to compute a zero of the function f(x) = x4 – x3 – x2 – 4 in the
interval [1,9]. The method converges to a solution after ––––– iterations
(A)
7
(B)
5
(C)
3
(D)
1
Answer: (C)
Explanation:
In bisection method, we calculate the values at extreme points of given interval, if signs of values are opposite, then we find the middle point. Whatever sign we get at middle point, we take the corner point of opposite sign and repeat the process till we get 0.
f(1) < 0 and f(9) > 0
mid = (1 + 9)/2 = 5
f(5) > 0, so zero value lies in [1, 5]
mid = (1+5)/2 = 3
f(3) > 0, so zero value lies in [1, 3]
mid = (1+3)/2 = 2
f(2) = 0
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...