Math-305, Numerical Methods & Matrices
Linear Interpolation to Approximate a Zero of a Function

Dr. Kevin G. TeBeest

      

         False Position to Approximate a Zero of

                 f(x) = exp(-x) — cos(x)

         Starting Interval:      [ 1.0 , 2.0 ]


    Iter#            xL                       xM                        xR                   f(xM)
  *****************************************************************************************************
      1    1.00000000000000000000    1.23818438661593897500    2.00000000000000000000   -3.66028212e-02
      2    1.23818438661593897500    1.28560032729423432200    2.00000000000000000000   -4.86098652e-03
      3    1.28560032729423432200    1.29184231562921698680    2.00000000000000000000   -5.86130021e-04
      4    1.29184231562921698680    1.29259416556599362120    2.00000000000000000000   -6.97695984e-05
      5    1.29259416556599362120    1.29268365020368301730    2.00000000000000000000   -8.29206958e-06

Note that the right end point becomes stationary.


Return to Section 1.2 assignment

Return to course web site