0% found this document useful (0 votes)
33 views

Solving Linear Equations

This document contains the results of using bisection, secant, and regula falsi methods to find the roots of three different functions. For each function, it shows the initial values used, iterations performed, and values of the function at each step until the tolerance of 0.001% was reached. The root values found for the three functions were 1.25488 using bisection, 1.71782 using secant, and 0.01614 using regula falsi.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Solving Linear Equations

This document contains the results of using bisection, secant, and regula falsi methods to find the roots of three different functions. For each function, it shows the initial values used, iterations performed, and values of the function at each step until the tolerance of 0.001% was reached. The root values found for the three functions were 1.25488 using bisection, 1.71782 using secant, and 0.01614 using regula falsi.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ELIZAN, JANE JOSANIN S.

ECN 411 1A

ENGR. F.V. DE VERA

Let:

ITERATION
0
1
2
3
4
5
6

AUGUST 15, 2012

x1
1.25470
1.25480
1.25484
1.25487
1.25488
1.25488
1.25488

Let:

ITERATION
x0
0
1.27000
1
1.25000
2
1.25478

Let:

ITERATION
x0
0
1.20000
1
1.25447
2
1.25488

A.1) For Bisection Method


F(x)=2x4-3x2+3x-4
1.25470
x1=
f(x1)= -0.00205
Tol: 0.001%
1.25489
x2=
f(x2)= 0.00009
f(x1) and f(x2) < 0
x2
x3
f(x1)
f(x3)
|(x1-x2)|
1.25489
1.25480
-0.00205
-0.00098
0.00019
1.25489
1.25484
-0.00098
-0.00044
0.00009
1.25489
1.25487
-0.00044
-0.00018
0.00005
1.25489
1.25488
-0.00018
-0.00004
0.00002
1.25489
1.25488
-0.00004
0.00002
0.00001
1.25488
1.25488
-0.00004
-0.00001
0.00001
1.25488
1.25488
-0.00001
0.00001
0

B.1) For Secant Method


F(x)=2x4-3x2+3x-4
x0= 1.25000
|f(x0)|= 0.05469
Tol: 0.001%
x1= 1.27000
|f(x1)|= 0.17419
Since |f(x0)| < |f(x1)| then Swap x0 to x1
x1
f(x0)
f(x1)
x2
f(x2)
1.25000 0.17419
-0.05469
1.25478
-0.00116
1.25478 -0.05469
-0.00116
1.25488
0.00001
1.25488 -0.00116
0.00001
1.25488
0

C.1) For Regula Falsi Method


F(x)=2x4-3x2+3x-4
x0= 1.20000
f(x0)= -0.57280
Tol: 0.001%
x1= 1.26000
f(x1)= 0.05815
f(x0) and f(x1) are of opposite sign.
x1
f(x0)
f(x1)
x2
f(x2)
1.26000 -0.57280
0.05815
1.25447
-0.00464
1.26000 -0.00464
0.05815
1.25488
-0.00003
1.26000 -0.00003
0.05815
1.25488
0

Let:

ITERATION
0
1
2
3
4
5
6

x1
1.71760
1.71775
1.71775
1.71779
1.71781
1.71782
1.71782

Let:

A.2)For Bisection Method


F(x)=xcosx-2x2+3x+1
x1= 1.71760
f(x1)= 0.00126
Tol: 0.001%
1.71790
x2=
f(x2)= -0.00046
f(x1) and f(x2) < 0
x2
x3
f(x1)
f(x3)
1.71790
1.71775
0.00126
0.00040
1.71790
1.71783
0.00040
-0.00003
1.71783
1.71779
0.00040
0.00018
1.71783
1.71781
0.00018
0.00008
1.71783
1.71782
0.00008
0.00002
1.71783
1.71782
0.00002
0
1.71782
1.71782
0.00002
0.00001

x0=
x1=

ITERATION
x0
x1
0
1.70000 1.73500
1
1.73500 1.71767
2
1.71767 1.71782

Let:

ITERATION
0
1
2

x0
1.73000
1.73000
1.73000

|(x1-x2)|
0.00030
0.00015
0.00007
0.00004
0.00002
0.00001
0

B.2) For Secant Method


F(x)=xcosx-2x2+3x+1
1.70000
|f(x0)|= 0.10096
Tol: 0.001%
1.73500
|f(x1)|= 0.09906
Since |f(x0)| > |f(x1)| then retain the initial values
f(x0)
f(x1)
x2
f(x2)
0.10096
-0.09906
1.71767
0.00088
-0.09906
0.00088
1.71782
0.00001
0.00088
0.00001
1.71782
0

C.2) For Regula Falsi Method


F(x)=xcosx-2x2+3x+1
x0= 1.73000
f(x0)= -0.07006
Tol: 0.001%
x1= 1.65000
f(x1)= 0.37445
f(x0) and f(x1) are of opposite sign.
x1
f(x0)
f(x1)
x2
f(x2)
1.65000
-0.07006
0.37445
1.71739
0.00245
1.71739
-0.07006
0.00245
1.71782
0.00001
1.71782
-0.07006
0.00001
1.71782
0

Let:

ITERATION
0
1
2
3
4
5

x1
0.01610
0.01610
0.01613
0.01614
0.01614
0.01614

Let:

ITERATION
x0
0
0.05000
1
0.01300
2
0.01595

Let:

ITERATION
x0
0
0.03000
1
0.03000
2
0.03000

A.3) For Bisection Method


F(x)=2e2xsin3x-0.1
x1= 0.01610
f(x1)= -0.00028
Tol: 0.001%
0.01620
x2=
f(x2)= 0.00036
f(x1) and f(x2) < 0
x2
x3
f(x1)
f(x3)
|(x1-x2)|
0.01620
0.01615
-0.00028
0.00004
0.00010
0.01615
0.01613
-0.00028
-0.00012
0.00005
0.01615
0.01614
-0.00012
-0.00004
0.00002
0.01615
0.01614
-0.00004
0.00000
0.00001
0.01614
0.01614
-0.00004
-0.00002
0.00001
0.01614
0.01614
-0.00002
-0.00001
0

B.3) For Secant Method


F(x)=2e2xsin3x-0.1
x0= 0.01300
|f(x0)|= 0.01997
Tol: 0.001%
x1= 0.05000
|f(x1)|= 0.23031
Since |f(x0)| < |f(x1)| then Swap x0 to x1
x1
f(x0)
f(x1)
x2
f(x2)
0.01300 0.23031
-0.01997
0.01595
-0.00122
0.01595 -0.01997
-0.00122
0.01614
0.00001
0.01614 -0.00122
0.00001
0.01614
0

C.3) For Regula Falsi Method


F(x)=2e2xsin3x-0.1
x0= 0.03000
f(x0)= 0.09087
Tol: 0.001%
x1= 0.01100
f(x1)= -0.03254
f(x0) and f(x1) are of opposite sign.
x1
f(x0)
f(x1)
x2
f(x2)
0.01100 0.09087
-0.03254
0.01601
-0.00085
0.01601 0.09087
-0.00085
0.01614
-0.00002
0.01614 0.09087
-0.00002
0.01614
0

You might also like