lõikemeetodi
Lõikemeetod, also known as the secant method, is a numerical method for finding successively better approximations to the roots of a real-valued function. It is similar to Newton's method but does not require the calculation of the derivative of the function. Instead, it uses a finite difference approximation of the derivative.
The method begins with two initial guesses, x0 and x1, which are typically chosen to be close
x2 = x1 - f(x1) * (x1 - x0) / (f(x1) - f(x0))
The process is then repeated. The new pair of approximations becomes x1 and x2, and the next
The lõikemeetod converges linearly, which is slower than the quadratic convergence of Newton's method. However, it