1.

The secant method is used to find the root of an equation f(x) = 0. It is started from two distinct estimates xa and xb for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if f(xb) is very small and then xb 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?SecantInitialize: xa, xb, ε, N // ε = convergence indicator// N = maximum no. of iterationsfb = f(xb)i = 0while (i < N and |fb| > ε) doi = i + 1 // update counterxt = ? // missing expression for // intermediate valuexa = xb // reset xaxb = xt // reset xbfb = f(xb) // function value at new xb end whileif |fb| > ε then // loop is terminated with i = Nwrite “Non - convergence”elsewrite “return xb”end if

A. xb – (fb – f(xa)) fb /(xb – xa)
B. xa – (fa – f(xa)) fa /(xb – xa)
C. xb – (xb – xa)fb/(fb – f(xa))
D. xa – (xb – xa) fa/(fb – f(xa))
Answer» D. xa – (xb – xa) fa/(fb – f(xa))


Discussion

No Comment Found