As follows from question 110503, we were given an equation f(x)=x3−5x2+1 and we established that its smallest positive root belongs to the interval
[x0,x1]=[xi−1,xi]=[0.469,0.5].
Use the secant method to approximate the root:
xi+1=xi−f(xi)−f(xi−1)f(xi)⋅(xi−xi−1)= =0.5−(−0.125)−0.0034−0.125⋅(0.5−0.469)=0.4698. Use this root for the second iteration, where xi=0.4698,xi−1=0.469:
xi+1=0.4698−1.303⋅10−4−0.00341.303⋅10−4⋅(0.4698−0.469)=0.46983. Check the value of the function:
f(0.46983)=9.23⋅10−6.
Comments