Skip to content
Official PYQ · 2015

GATE CS 2015 Set 2 Q39 — Numerical Methods (Historical)

Explain with AI

Historical syllabus topic · This subject is outside the current GATE syllabus.

The secant method is used to find the root of an equation f(x)=0f(x)=0. It is started from two distinct estimates xax_a and xbx_b for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if f(xb)f(x_b) is very small and then xbx_b is the solution. The procedure is given below. Observe that there is an expression which is missing and is marked by ?. Which is the suitable expression that is to be put in place of ? so that it follows all steps of the secant method?

Secant\textbf{Secant}

Initialize xa,xb,ε,Nx_a, x_b, \varepsilon, N // ε\varepsilon = convergence integer
// N = maximum no. iterations
fb=f(xb)f_b=f(x_b)
i=0
while ( i < N and ∣fb∣>ε)|f_b| > \varepsilon) do
     i = i+1 // update counter
     xtx_t =? //missing expression for intermediate value
     xa=xbx_a =x_b //reset xax_a
     xb=xtx_b = x_t  // reset xbx_b
     fb=f(xb)f_b = f(x_b)  //function value at new xbx_b
end while
if ∣fb∣>ε|f_b| > \varepsilon then // loop is terminated with i=N
     write "Non-convergence"
else
     write "return xbx_b"
end if

Choose one option
View answer

Answer: C

Worked explanation not available yet.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Numerical Methods (Historical) questions