You are on page 1of 5

Prob 1

Equation : x^4Sinx - exp(x) = 0


Mueller Method
x0 x1 x2 f0 f1 f2 f[x2,x1] f[x1,x0] f[x2,x1,x0]
1 2 3 -1.876811 7.159703 -8.65481627034 -15.81452 9.036514 -12.4255163
2 3 2.6348647311 7.159703 -8.654816 9.450206816703 -49.58443 -15.81452 -53.1922886
3 2.634865 2.8593262945 -8.654816 9.450207 1.168171114936 -36.89734 -49.58443 -90.1880144
2.634865 2.859326 2.8791496871 9.450207 1.168171 0.028554493953 -57.48848 -36.89734 -84.2914403
2.859326 2.87915 2.8796320259 1.168171 0.028554 -0.00011618662 -59.44096 -57.48848 -96.1541872

One of the Root = 2.8796300727

Secant Method
Additional Part to check with d
Iteration x x^4sinx-exp(x) ea(%) Iteration x x^4sinx-expea(%)
1 -1.876810844 2 7.159703
2 7.1597027303 3 -8.654816
1 1.207692 -1.357174931 1 2.45273 11.38505
2 1.333947 -0.718076172 9.464788 2 2.763645 5.668874 11.2501853
3 1.475805 0.3477404501 9.612209 3 3.071987 -15.39079 10.0372331
4 1.429521 -0.042284696 3.237682 4 2.846645 1.858233 7.91606999
5 1.434539 -0.002000045 0.349786 5 2.870921 0.510737 0.84558498
6 1.434788 1.264461E-05 0.017363 6 2.880122 -0.029309 0.31947514
7 1.434787 -3.735328E-09 0.000109 7 2.879623 0.000421 0.01734142
8 2.87963 3.38E-07 0.00024529
a b c Determinant +/- (x3-x2)+ x3 e(%)
-12.42552 -28.24004 -8.654816 19.16604682608 -0.36513526891 2.63486473109 13.85784
-53.19229 -30.16205 9.450207 54.04129491781 0.224461563378 2.85932629447 7.850156
-90.18801 -57.14109 1.168171 60.71675236909 0.019823392587 2.87914968705 0.688516
-84.29144 -59.15942 0.028554 59.2407319764 0.000482338814 2.87963202587 0.01675
-96.15419 -59.48734 -0.000116 59.48695998747 -1.9531382E-06 2.87963007273 6.783E-05

nal Part to check with different initial values


Iteration x x^4sinx-exp(x) ea(%)
3 -8.65481627034
4 -248.339588832
1 2.963891 -5.73200305822
2 2.939411 -3.91407279788 0.832812486566
3 2.886705 -0.42576051748 1.82581513798
4 2.880272 -0.03823975582 0.22334473751
5 2.879637 -0.0004377041 0.022044060027
6 2.87963 -4.5881554E-07 0.000255245409
Newton-Raphson Method
f ( x )  x 3  7 x 2  16 x  12  0 3
f ( x )  3x  14 x  16
2

f  xi 
xi 1  xi  2
f   xi 

iteration (i) xi f(xi) f'(xi) xi+1 ea


1 0.5 -5.625 9.75 1.0769231 53.57 1

f(x)=x -7x +16 -12


1 1.0769231 -1.6385981 4.4023669 1.4491315 25.68

x
2 1.4491315 -0.4706205 2.0121052 1.6830261 13.90

2
3 1.6830261 -0.1323196 0.9353652 1.8244891 7.75 0
4 1.8244891 -0.0362105 0.4434339 1.9061484 4.28

3
5 1.9061484 -0.0096348 0.2141274 1.9511439 2.31
6 1.9511439 -0.0025035 0.1048729 1.975016 1.21
-1
7 1.975016 -0.0006398 0.0518406 1.9873576 0.62
8 1.9873576 -0.0001619 0.0257643 1.9936396 0.32
9 1.9936396 -4.0712E-05 0.0128422 1.9968098 0.16
10 1.9968098 -1.021E-05 0.006411 1.9984024 0.08 -2

-3
0 1
f(x)=x -7x +16 -12

-3
-2
-1
0
1
2
3

0
1
2
x
3
4
5
First modification Newton-Raphson
f  xi 
xi 1  xi  m
m=2 f   xi 

iteration (i) xi f(xi) f'(xi) xi+1 ea


0 1 -2 5 1.8 44.44
1 1.8 -0.048 0.52 1.984615 9.302326
2 1.984615 -0.00024 0.031479 1.999884 0.763491
3 1.999884 -1.34E-08 0.000231 2 0.005783
4 2 0 1.34E-08 2 0

Second modification Newton-Raphson

f   xi   6 x  14
f  xi  f   xi 
xi 1  xi 
 f   xi    f  xi  f   xi 
2

iteration (i) xi f(xi) f'(xi) f''(xi) xi+1 ea


0 1 -2 5 -8 2.111111 52.63
1 2.111111 -0.010974 -0.185185 -1.333333 2.007752 5.148005
2 2.007752 -5.96E-05 -0.015324 -1.953488 2.000031 0.386065
3 2.000031 -9.31E-10 -6.1E-05 -1.999817 2 0.001526
4 2 0 -9.29E-10 -2 2 0

You might also like