what is a secant method code example Example: secant method x(i+1) = x(i-1)f(xi)-x(i)f(xi-1)/f(xi)-f(xi-1)