Description: Iteration is a commonly used method for finding the approximate roots of equations or equations. Let the equation be f (x) 0, derive the equivalent form x g (x) by some mathematical method, and do the following:
(1) choose the approximate root of an equation, assigned to the variable x0
(2) the value of x0 stored in the variable x1, and then calculate g (x1), and the results stored in the variable x0
(3) When the absolute value of the difference between x0 and x1 is less than the specified accuracy requirement, the calculation of step (2) is repeated.
If the equation has roots and the approximate root sequence calculated by the above method converges, x0 obtained by the above method is considered to be the root of the equation
To Search:
File list (Check if you may need any files):
C缂栫▼甯哥敤绠楁硶.txt
diedai.cpp