The secant method starts from two approximations . Replace the function near its zero of a function by the secant line through and ; the zero of that line is the next approximation:
Stop immediately if ; otherwise the denominator must be nonzero. Each further step needs one new function evaluation and no derivative. There is no automatic bracketing or global convergence guarantee.[ref]
Use . Then , , and the secant method gives
Writing , the next step is
Thus the requested approximation is to three significant figures. All intermediate logarithms should be retained at higher precision before this final rounding.
A small difference between successive secant method iterates alone does not certify a small absolute error. Instead use a residual root error bound. On ,
and , so there is a unique root . For an iterate , the mean value theorem gives
Therefore stop when and . This guarantees the desired absolute error in exact arithmetic; the evaluated residual of a root equation should include an allowance for its much smaller roundoff error. A safeguarded implementation can retain the bracket and use bisection if a proposed secant method step leaves it.

Articles by others on the same topic (0)

There are currently no matching articles.