Initialization. Two initial guesses x0 and x1 are chosen.
Iteration. For n=1,2,3,...
xn+1=xn−f(xn)⋅f(xn)−f(xn−1)xn−xn−1 Given f(x)=sin(x)+cos(1+x2)−1
x0=1.5,x1=2.5
Step12345x01.5000002.5000002.3569292.5472872.526339x12.5000002.3569292.5472872.5263392.532107x22.3569292.5472872.5263392.5321072.532213f(x2)0.669842−0.0828280.0314710.000570−0.000004
Root is : x=2.532213
Comments