Professional Documents
Culture Documents
1/8
Notation
For the sake of brevity we may write f (x0 ) as f0 or y0 and in general f (xi )
as fi or yi . Henceforth both the notations may be used interchangeably.
2/8
3/8
3/8
3/8
4/8
4/8
(x
(y
x1 )
(x2
=
y1 )
(y2
x1 )
y1 )
4/8
(x
(y
x1 )
(x2
=
y1 )
(y2
x1 )
y1 )
(y
(x
y1 )
x1 )
(y2
(x2
y1 )
x1 )
4/8
(x
(y
x1 )
(x2
=
y1 )
(y2
x1 )
y1 )
(y
(x
(y
or
(x
y1 )
x1 )
f1 )
x1 )
=
=
(y2
(x2
( f2
(x2
y1 )
x1 )
f1 )
.
x1 )
4/8
5/8
( f2
(x2
f1 )
x1 )
(0
(x
f1 )
x1 )
5/8
( f2
(x2
f1 )
x1 )
or x0
x1 =
( 0 f1 )
( x x1 )
f1 (x2 x1 )
f2 f1
Hence
5/8
( f2
(x2
f1 )
x1 )
or x0
x1 =
Hence
x0 = x1
( 0 f1 )
( x x1 )
f1 (x2 x1 )
f2 f1
f (x2 x1 )
.
f2 f1
5/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
4
5
If f1
count = 1
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
count = 1
While count 6= 0
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
count = 1
While count 6= 0
Compute x0 = x1
f (x 2 x 1 )
f2 f1
and f0
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
count = 1
While count 6= 0
f (x 2 x 1 )
f2 f1
Compute x0 = x1
and f0
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
count = 1
While count 6= 0
f (x 2 x 1 )
f2 f1
Compute x0 = x1
If jf0 j
and f0
6/8
Choose two initial estimates of one of the roots in its vicinity and
tolerance .
Compute f1 and f2 .
If jf1 j
Else
If jf2 j
If f1
count = 1
While count 6= 0
f (x 2 x 1 )
f2 f1
Compute x0 = x1
If jf0 j
10
and f0
Stop.
6/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
x1
x2
x0
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
x1
x2
x0
f1
f2
f0
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
Initialization
x1
3.0000
x2
4.5000
x0
3.9330
f1
7.0000
f2
4.2500
f0
0.5315
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
Initialization
x1
3.0000
x2
4.5000
x0
3.9330
f1
7.0000
f2
4.2500
f0
0.5315
x1
3.9330
4.5000
3.9956
0.5315
4.2500
0.0351
x0
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
Initialization
x1
3.0000
x2
4.5000
x0
3.9330
f1
7.0000
f2
4.2500
f0
0.5315
x1
x0
3.9330
4.5000
3.9956
0.5315
4.2500
0.0351
x1
x0
3.9956
4.5000
3.9997
0.0317
4.2500
0.0023
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
Initialization
x1
3.0000
x2
4.5000
x0
3.9330
f1
7.0000
f2
4.2500
f0
0.5315
x1
x0
3.9330
4.5000
3.9956
0.5315
4.2500
0.0351
x1
x0
3.9956
4.5000
3.9997
0.0317
4.2500
0.0023
x1
x0
3.9997
4.5000
3.9999
0.0021
4.2500
0.0008
7/8
Example
We evaluate the root of f (x ) = x 2
Iteration No
Initialization
x1
3.0000
x2
4.5000
x0
3.9330
f1
7.0000
f2
4.2500
f0
0.5315
x1
x0
3.9330
4.5000
3.9956
0.5315
4.2500
0.0351
x1
x0
3.9956
4.5000
3.9997
0.0317
4.2500
0.0023
x1
x0
3.9997
4.5000
3.9999
0.0021
4.2500
0.0008
7/8
Thank you
8/8