Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

Problem 6.

True value

x= 6.948955

f(x) = 0.399421

Graphic Method 0.8

0.6
x f (x)
0 0.6 0.4 0.7
1 0.349123 0.2 0.7
2 0.439736 0.7
0
3 0.570021 0 0.7
2 4 6 8 10 12
4 0.614174 -0.2 0.7
5 0.52649 -0.4 0.7
6 0.305989 0.7
-0.6
7 -0.01901 0.7
8 -0.40092 -0.8 0.7
9 -0.78228 -1 0.7
10 -1.10524 -1.2
0.7

Secant Method

0 = sin((2x)/16)cos((212*48)/16) + e-x - 0.4

Assume : xi-1 = 1
xi = 10

i xi xi-1 f(xi) f(xi-1) xi+1 a (%) t (%)


1 10 1 -1.10524 0.349123 3.160464 119.8714
2 3.160464 10 0.584793 -1.10524 5.527104 42.81881 25.72506
3 5.527104 3.160464 0.425576 0.584793 11.853 53.36959 41.37389
4 11.853 5.527104 -1.3943 0.425576 7.006411 69.17367 0.820051
5 7.006411 11.853 -0.02133 -1.3943 6.931105 1.086505 0.257544
6 6.931105 7.006411 0.005829 -0.02133 6.947264 0.232609 0.024336
7 6.947264 6.931105 2.86E-05 0.005829 6.947344 0.001147 0.023189

Newton Raphson Method (s = 0.01%)

f(x) = sin((2x)/16)cos((212*48)/16) + e-x - 0.4

f' (x) =

i xi f(xi) f'(xi) xi+1 a (%) t (%)


1 10 -1.10524 -0.27736 6.015099 30.51045
2 6.015099 0.301758 -0.28 7.092801 66.24831 15.5252
3 7.092801 -0.05289 -0.36845 6.949247 15.19431 2.02805
4 6.949247 -0.00068 -0.36018 6.947348 2.065745 0.004199
12

You might also like