Method of the secant
In numerical Analysis, the method of the secant is an algorithm of search for roots of a function F .
Method
The method of the secant is a method derived from that of Newton where one replaces by One obtains the relation of RécurrenceInitialization requires 2 points X 0 and X 1, close relations, if possible, of the required solution.
Demonstration
Being given has and B , one builds the segment connecting ( has , F ( has )) and ( B , F ( B )). The line can be as follows defined:C is chosen so that C is the root of this line (i.e., F ( C ) =0).
If one extracts C from this equation, one finds the relation of recurrence referred to above.
Convergence
If the initial values of X 0 and X 1 are sufficiently close to the solution, the method will have a Ordre of convergence of- which is the Golden section.
However, the function F must be 2 times continuement differentiable and it must be a simple root.
Example of implementation
This program in C solves the problem F ( X ) = cos ( X ) - X 3 = 0. The tests of stops are the following:
# include
The following results are obtained:
_de_Clementina_Sobieski
See too
Random links: Paul Cohen | Suger of Saint-Denis | Something Else by the Kinks | William Witney | Tomuya |