Вы находитесь на странице: 1из 8

NUMERICAL ANALYSIS METHO

by Beverly Ann Gonzales

Given Equation:
f(x) = sin x - e^(-x) [3,4]
ANALYSIS METHODS
verly Ann Gonzales

Graphic Representation of sin(x) - e^(-x)

(3.0964,0)
Bisection Method sin x - e^-x=0 [3,4]

i a f(a) b
1 3 0.09133293969 4
2 3 0.09133293969 3.5
3 3 0.09133293969 3.25
4 3 0.09133293969 3.125
5 3.0625 0.03223959436 3.125
6 3.09375 0.00249276274 3.125
7 3.09375 0.00249276274 3.109375
8 3.09375 0.00249276274 3.1015625
9 3.09375 0.00249276274 3.09765625
10 3.095703 0.00063023456 3.09765625
11 3.095703 0.00063023456 3.09667969
12 3.096191 0.0001645479 3.09667969
13 3.096191 0.0001645479 3.09643555
14 3.096313 4.8122859E-05 3.09643555
15 3.096313 4.8122859E-05 3.09637451
16 3.096344 1.9016387E-05 3.09637451
17 3.096359 4.4631197E-06 3.09637451
18 3.096359 4.4631197E-06 3.09636688
19 3.096363 8.2479957E-07 3.09636688
20 3.096363 8.2479957E-07 3.09636497
f(b) c f (c ) error relative % error Root
-0.77511813419666 3.500 -0.380980611111938 0.403636 - 0
-0.38098061111194 3.25 -0.14696934236183 0.25 7.6923% 0
-0.14696934236183 3.125 -0.02734504139406 0.125 4.0000% 0
-0.02734504139406 3.0625 0.032239594363431 0.0625 2.0408% 0
-0.02734504139406 3.09375 0.002492762736319 0.03125 1.0101% 0
-0.02734504139406 3.109375 -0.012416759302915 0.015625 0.5025% 0
-0.01241675930291 3.1015625 -0.004959404339302 0.007813 0.2519% 0
-0.0049594043393 3.09765625 -0.001232641196535 0.003906 0.1261% 0
-0.00123264119653 3.095703125 0.000630234561041 0.001953 0.0631% 0
-0.00123264119653 3.0966796875 -0.000301160356199 0.000977 0.0315% 0
-0.0003011603562 3.09619140625 0.000164547903588 0.000488 0.0158% 0
-0.0003011603562 3.09643554688 -6.8303533611293E-05 0.000244 0.0079% 0
-6.83035336113E-05 3.09631347656 4.81228591115088E-05 0.000122 0.0039% 0
-6.83035336113E-05 3.09637451172 -1.0090168837795E-05 6.104E-05 0.0020% 0
-1.00901688378E-05 3.09634399414 1.9016387254718E-05 3.052E-05 0.0010% 0
-1.00901688378E-05 3.09635925293 4.46311973607838E-06 1.526E-05 0.0005% 0
-1.00901688378E-05 3.09636688232 -2.8135219191858E-06 7.629E-06 0.0002% 0
-2.81352191919E-06 3.09636306763 8.24799566395695E-07 3.815E-06 0.0001% 0
-2.81352191919E-06 3.09636497498 -9.9436101191897E-07 1.907E-06 0.0001% 0
-9.94361011919E-07 3.0963640213 -8.478068164175E-08 9.537E-07 0.0000% 1
Regula Falsi sinx - e^-x=0 [3,4]
i a f(a) b f(b)
1 3 0.09133293969 4 -0.7751181341967
2 3.10541 -0.0086317509 2 0.7739621435891
3 3.10541 -0.0086317509 1 0.4735915436365
4 3.10541 -0.0086317509 3.06772373857162 0.02727481239076
5 3.10541 -0.0086317509 3.0963507100068 1.2611045578E-05
6 3.10541 -0.0086317509 3.09636392693966 5.2180261848E-09
c f (c ) error Relative Error % Root
3.10541 9.60739927163497 0.009046 - 0
3.093218 9.51964233539248 0.012192 0.3942% 0
3.067724 9.33712718190957 0.025494 0.8311% 0
3.096351 9.54216120798452 0.028627 0.9245% 0
3.096364 9.54225626009078 1.322E-05 0.0004% 0
3.096364 9.5422562994202 5.469E-09 0.00% 1
Page 7

Newton's Method f(x) = sin(x) - e^(-x) f'(x) = cos(x) + e^(-x) x=3

i x f(x) f'(x) error Relative Error % Root


1 3 0.0913329397 -1.03978 0.0963638907 - 0
2 3.087838752 0.0081276164 -1.044156 0.0878387523 2.84% 0
3 3.095622662 0.0007069718 -1.04419 0.00778391 0.25% 0
4 3.096299715 6.124812E-05 -1.044191 0.0006770526 0.02% 0
5 3.096358371 5.304254E-06 -1.044191 5.865607E-05 0.0019% 0
6 3.096363451 4.593482E-07 -1.044191 5.079775E-06 0.0002% 0
7 3.096363891 3.977943E-08 -1.044191 4.399084E-07 0.00001% 1

Newton's Method f(x) = sin(x) - e^(-x) f'(x) = cos(x) + e^(-x) x=4

i x f(x) f'(x) error Relative Error % Root


1 4 -0.775118134 -0.671959 0.9036372312 - 0
2 2.846480463 0.2327989277 -1.014818 1.153519537 40.52% 0
3 3.075880195 0.0195161857 -1.043991 0.2293997323 7.46% 0
4 3.094574026 0.0017070024 -1.044189 0.0186938309 0.60% 0
5 3.09620879 0.0001479684 -1.044191 0.0016347636 0.05% 0
6 3.096350496 1.28151E-05 -1.044191 0.0001417063 0.0046% 0
7 3.096362769 1.109792E-06 -1.044191 1.227276E-05 0.0004% 0
8 3.096363832 9.610771E-08 -1.044191 1.062825E-06 0.00003% 0
9 3.096363924 8.3229E-09 -1.044191 9.204038E-08 0.000003% 1
Secant Method sin x - e^(-x)=0 x(a) = 3 x(b)=4

i n x(a) x(b) f(xa) f(xb) x(n+2) f(xn+2) error relative % error root
1 0 3 4 0.09133294 -0.7751181342 3.10541 0.08098 0.903636 - 0
2 1 4 3.10541 -0.77511813 -0.0086317509 3.095336 0.0915 0.89459 28.81% 0
3 2 3.10541 3.095336 -0.00863175 0.00098035352 3.096364 0.090427 0.010074 0.33% 0
4 3 3.095336 3.096364 0.00098035 4.0731731E-07 3.096364 0.090427 0.001028 0.03% 0
5 4 3.096364 3.096364 4.07317E-07 -1.992758E-11 3.096364 0.090427 4.271E-07 0.00001% 1

Вам также может понравиться