According to the secant method, the root can be found by the following equation:
xn=f(xn−1)−f(xn−2)xn−2f(xn−1)−xn−1f(xn−2)
Take the last interval of [xn−2;xn−1]=[0.469;0.5]. The first iteration gives
xn=f(0.5)−f(0.469)0.469f(0.5)−0.5f(0.469)=0.495.
Choose points for the second iteration. The signs of the function at the interval ends must be different:
f(0.495)f(0.5)>0,f(0.469)f(0.495)<0.Therefore, we choose [0.469;0.495].
The second iteration gives
xn=f(0.495)−f(0.469)0.469f(0.495)−0.495f(0.469)=0.470.
Comments