Professional Documents
Culture Documents
NUMERICAL METHOD
Secant Method – Derivation
f(x) Newton’s Method
f(xi )
xi +1 = xi - (1)
f(xi)
x f (x ) f (xi )
i, i
E D A
On rearranging, the secant
xi+1 xi-1 xi
X
method is given as
f ( xi )( xi − xi −1 )
Figure 2 Geometrical representation of xi +1 = xi −
the Secant method. f ( xi ) − f ( xi −1 )
Algorithm for Secant Method
Step 1
Calculate the next estimate of the root from two initial guesses
f ( xi )( xi − xi −1 )
xi +1 = xi −
f ( xi ) − f ( xi −1 )
Find the absolute relative approximate error
xi +1- xi
a = 100
xi +1
Step 2
Find if the absolute relative approximate error is
greater than the prespecified relative error tolerance.