Professional Documents
Culture Documents
a. x5 − x4 - 2x3 + x2 - x - 1 = 0
From b1 and b2, x = g(x) for b2 will converge faster than in b1.
Error
1.603657
0.561212
0.207763
0.066168
0.022169
0.007303
0.002419
0.0008
0.000265
x3 + 2x2 + 10x = 20
x(x2 + 2x + 10) = 20
x = 20/(x2 + 2x + 10)
F(x) = x^3+2x^2+10x-20
Bisection Method
k a f(a) b f(b)
0 1.000000 -7.000000 2.000000 16.000000
1 1.000000 -7.000000 1.500000 2.875000
2 1.250000 -2.421875 1.500000 2.875000
3 1.250000 -2.421875 1.375000 0.130859
4 1.312500 -1.168701 1.375000 0.130859
5 1.343750 -0.524811 1.375000 0.130859
6 1.359375 -0.198460 1.375000 0.130859
7 1.367188 -0.034173 1.375000 0.130859
8 1.367188 -0.034173 1.371094 0.048250
9 1.367188 -0.034173 1.369141 0.007016
10 1.368164 -0.013584 1.369141 0.007016
11 1.368652 -0.003286 1.369141 0.007016
12 1.368652 -0.003286 1.368896 0.001864
13 1.368774 -0.000711 1.368896 0.001864
14 1.368774 -0.000711 1.368835 0.000577
F(x) = x^3+2x^2+10x-20
Secant Method :
F(x) = x^3+2x^2+10x-20
a b f(a) f(b)
k x(i) x(k) f(i) f(k) x(i+k)
1 1.000000 2.000000 -7.000000 16.000000 1.304348
2 1.304348 2.000000 -1.334758 16.000000 1.357912
3 1.357912 2.000000 -0.229136 16.000000 1.366978
4 1.366978 2.000000 -0.038592 16.000000 1.368501
5 1.368501 2.000000 -0.006479 16.000000 1.368757
6 1.368757 2.000000 -0.001087 16.000000 1.368799
Error
0.411765
0.042428
0.000528
0.000000
m f(m) Error
1.500000 2.875000 2.875000 f(a) and f(m) opposite sign, a =a, b =
1.250000 -2.421875 2.421875 f(a) and f(m) same sign, a =m, b = b
1.375000 0.130859 0.130859
1.312500 -1.168701 1.168701
1.343750 -0.524811 0.524811
1.359375 -0.198460 0.198460
1.367188 -0.034173 0.034173
1.371094 0.048250 0.048250
1.369141 0.007016 0.007016
1.368164 -0.013584 0.013584
1.368652 -0.003286 0.003286
1.368896 0.001864 0.001864
1.368774 -0.000711 0.000711
1.368835 0.000577 0.000577
1.368805 -0.000067 0.000067
error = 0.0003
x(i+k) Error
1.429844 0.570156
1.375165 0.374835
1.368919 0.060925
1.368808 0.006357
1.368808 0.000111
1.368808 0.000000