0% found this document useful (0 votes)
12 views10 pages

Numerical Methods and Analysis

The document contains a series of calculations for the function f(x) = e^x - x^2 log(x) and its approximations using various numerical methods. It includes tables of values for x, f(x), and iterative approximations to find roots. Additionally, it presents a second function g(x) = 4x^2 - xe^x + 6 with similar iterative calculations.

Uploaded by

Cris Angelo Hugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views10 pages

Numerical Methods and Analysis

The document contains a series of calculations for the function f(x) = e^x - x^2 log(x) and its approximations using various numerical methods. It includes tables of values for x, f(x), and iterative approximations to find roots. Additionally, it presents a second function g(x) = 4x^2 - xe^x + 6 with similar iterative calculations.

Uploaded by

Cris Angelo Hugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 10

x f(x) 15

-1.5 -22.25
-1.25 -13.375
10
-1 -7
-0.75 -2.75
5
-0.5 -0.25
-0.25 0.875
0
0 1 -1.5 - -1 - -0.5 - 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
1.25 0.75 0.25
0.25 0.5
-5
0.5 -0.25
0.75 -0.875
-10
1 -1
1.25 -0.25
-15
1.5 1.75
1.75 5.375
-20
2 11

-25
0.75 1 1.25 1.5 1.75 2

Column B
f(x)= e^x -x^2logx2

i x1 f(x1) xr f(xr) xm
1 -1 0.36787944117144 -2 -2.27290468207524 -1.5
2 -1 0.36787944117144 -1.5 -0.56928050560214 -1.25
3 -1 0.36787944117144 -1.25 -0.01633899378999 -1.125
4 -1.125 0.19517264491342 -1.25 -0.01633899378999 -1.1875
5 -1.1875 0.09449264210807 -1.25 -0.01633899378999 -1.21875
6 -1.21875 0.04037257939548 -1.25 -0.01633899378999 -1.234375
7 -1.234375 0.01234400345368 -1.25 -0.01633899378999 -1.2421875
8 -1.234375 0.01234400345368 -1.2421875 -0.00191528824575 -1.23828125
9 -1.23828125 0.00523485900964 -1.2421875 -0.00191528824575 -1.240234375
10 -1.240234375 0.00166491703687 -1.2421875 -0.00191528824575 -1.241210938
11 -1.240234375 0.00166491703687 -1.241210938 -0.0001239019039 -1.240722656
12 -1.240722656 0.00077082839332 -1.241210938 -0.0001239019039 -1.240966797
13 -1.240966797 0.00032354346371 -1.241210938 -0.0001239019039 -1.241088867
14 -1.241088867 9.9840836187E-05 -1.241210938 -0.0001239019039 -1.241149902
15 -1.241088867 9.9840836187E-05 -1.241149902 -1.2025519594E-05 -1.241119385
16 -1.241119385 4.3908911838E-05 -1.241149902 -1.2025519594E-05 -1.241134644
17 -1.241134644 1.594200951E-05 -1.241149902 -1.2025519594E-05 -1.241142273
18 -1.241142273 1.9583233055E-06 -1.241149902 -1.2025519594E-05 -1.241146088
19 -1.241142273 1.9583233055E-06 -1.241146088 -5.0335785575E-06 -1.24114418
20 -1.241142273 1.9583233055E-06 -1.24114418 -1.5376227293E-06 -1.241143227

21 -1.241143227 2.0966149644E-07 -1.24114418 -1.5370768016E-06 -1.241143704


22 -1.241143227 2.0966149644E-07 -1.241143704 -6.6370734714E-07 -1.241143465
23 -1.241143227 2.0966149644E-07 -1.241143465 -2.2702284874E-07 -1.241143346
24 -1.241143227 2.0966149644E-07 -1.241143346 -8.6806568045E-09 -1.241143287
25 -1.241143287 1.0049042437E-07 -1.241143346 -8.6806568045E-09 -1.241143316
26 -1.241143316 4.5904884949E-08 -1.241143346 -8.6806568045E-09 -1.241143331
27 -1.241143331 1.861211435E-08 -1.241143346 -8.6806568045E-09 -1.241143339
28 -1.241143339 4.9657286061E-09 -1.241143346 -8.6806568045E-09 -1.241143342
29 -1.241143339 4.9657286061E-09 -1.241143342 -1.857464238E-09 -1.241143341
30 -1.241143341 1.5541324339E-09 -1.241143342 -1.857464238E-09 -1.241143341
31 -1.241143341 1.5541324339E-09 -1.241143341 -1.5166568001E-10 -1.241143341
32 -1.241143341 7.0123346019E-10 -1.241143341 -1.5166568001E-10 -1.241143341
33 -1.241143341 2.747836958E-10 -1.241143341 -1.5166568001E-10 -1.241143341
f(xm)
-0.56928050560214
-0.01633899378999
0.19517264491342
0.09449264210807
0.04037257939548
0.01234400345368
-0.00191528824575
0.00523485900964
0.00166491703687
-0.0001239019039
0.00077082839332
0.00032354346371
9.9840836187E-05
-1.2025519594E-05
4.3908911838E-05
1.594200951E-05
1.9583233055E-06
-5.0335785575E-06
-1.5376227293E-06
2.1035151232E-07

-6.6370734714E-07
-2.2702284874E-07
-8.6806568045E-09
1.0049042437E-07
4.5904884949E-08
1.861211435E-08
4.9657286061E-09
-1.857464238E-09
1.5541324339E-09
-1.5166568001E-10
7.0123346019E-10
2.747836958E-10
6.1559091158E-11
i xL yL xr yr xn
1 -1 0.36787944117 -2 -2.27290468207524 -1.139306897
2 -1.139306897 0.17299915176 -2 -2.27290468207524 -1.200183851
3 -1.200183851 0.07283529806 -2 -2.27290468207524 -1.225018167
4 -1.225018167 0.02920675072 -2 -2.27290468207524 -1.234850316
5 -1.234850316 0.01148114475 -2 -2.27290468207524 -1.238695898
6 -1.238695898 0.00447781831 -2 -2.27290468207524 -1.240192784
7 -1.240192784 0.00174104448 -2 -2.27290468207524 -1.240774351
8 -1.240774351 0.00067613358 -2 -2.27290468207524 -1.241000135
9 -1.241000135 0.00026245378 -2 -2.27290468207524 -1.241087767
10 -1.241087767 0.00010185787 -2 -2.27290468207524 -1.241121775
11 -1.241121775 3.9528094E-05 -2 -2.27290468207524 -1.241134972
12 -1.241134972 1.5339293E-05 -2 -2.27290468207524 -1.241140094
13 -1.241140094 5.9525108E-06 -2 -2.27290468207524 -1.241142081
14 -1.241142081 2.3099005E-06 -2 -2.27290468207524 -1.241142852
15 -1.241142852 8.9636658E-07 -2 -2.27290468207524 -1.241143152
16 -1.241143152 3.478386E-07 -2 -2.27290468207524 -1.241143268
17 -1.241143268 1.3498011E-07 -2 -2.27290468207524 -1.241143313
18 -1.241143313 5.237955E-08 -2 -2.27290468207524 -1.24114333
19 -1.24114333 2.0326085E-08 -2 -2.27290468207524 -1.241143337
20 -1.241143337 7.8876142E-09 -2 -2.27290468207524 -1.24114334
21 -1.24114334 3.0608187E-09 -2 -2.27290468207524 -1.241143341
22 -1.241143341 1.1877626E-09 -2 -2.27290468207524 -1.241143341
23 -1.241143341 4.6091608E-10 -2 -2.27290468207524 -1.241143341
yn
0.172999151759035
0.0728352980628419
0.0292067507204327
0.0114811447521465
0.00447781831322403
0.00174104447959128
0.00067613358149904
0.00026245377529316
0.00010185787086536
3.9528094311958E-05
1.5339292506078E-05
5.9525107701242E-06
2.3099004791693E-06
8.9636658190395E-07
3.4783860142218E-07
1.3498011403046E-07
5.2379550474768E-08
2.0326084593236E-08
7.8876141729189E-09
3.0608186540881E-09
1.1877626104884E-09
4.6091608307819E-10
1.7886014891388E-10
f(x) = 4x^2 - xe^x +6

i x g(x) ea et
1 3 2.63905733 13.6769545069854 4.581550081
2 2.63905733 2.551768128 3.42073407747734 1.12242096723242
3 2.551768128 2.530388437 0.844917349586683 0.275178586030019
4 2.530388437 2.525146971 0.207570724930649 0.0674678176611566
5 2.525146971 2.523861879 0.0509176692750404 0.0165417257249192
6 2.523861879 2.523546801 0.0124855279970269 0.0040556913534129
7 2.523546801 2.52346955 0.0030612923368267 0.0009943685760572
8 2.52346955 2.52345061 0.0007505726706598 0.0002437940755457
9 2.52345061 2.523445966 0.0001840256030679 5.9768362488644E-05
10 2.523445966 2.523444828 4.511938317403E-05 1.4648972705088E-05
11 2.523444828 2.523444549 1.1062363144371E-05 3.5866091639537E-06
12 2.523444549 2.52344448 2.7122682212019E-06 8.7434091903738E-07
13 2.52344448 2.523444463 6.6499341312311E-07 2.0934750452213E-07
14 2.523444463 2.523444459 1.6304294792332E-07 4.6304556523316E-08
15 2.523444459 2.523444458 3.9974856900141E-08 6.3296996206441E-09
16 2.523444458 2.523444458 9.8010278863808E-09 3.4713282653965E-09
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
2.523444458
i xa f(xa) xb f(xb)
1 2 7.2218878021387 3 -18.256610769563
2 3 -18.256610769563 2.28345029 4.45485794163628
3 2.28345029 4.45485794163628 2.424001621 2.13385156007326
4 2.424001621 2.13385156007326 2.553219568 -0.729074756270247
5 2.553219568 -0.729074756270247 2.520312838 0.074154627152712
6 2.520312838 0.074154627152712 2.523350807 0.0022244617088667
7 2.523350807 0.0022244617088667 2.523444757 -7.1118910831558E-06
8 2.523444757 -7.1118910831558E-06 2.523444458 6.7874950104851E-10
9 2.523444458 6.7874950104851E-10 2.523444458 0
10 2.523444458 0 2.523444458 0
ea et xm 2.523444458
- - 2.28345029 2.523444458
31.3801317894834 9.51057858654483 2.424001621 2.523444458
5.79831837797973 3.9407578979963 2.553219568 2.523444458
5.06098057285213 1.1799391668622 2.520312838 2.523444458
1.30566052345934 0.12410101858822 2.523350807 2.523444458
0.120394254316008 0.0037112323827647 2.523444757 2.523444458
0.0037230894179912 1.1857476690993E-05 2.523444458 2.523444458
1.1865263866857E-05 7.7871749403313E-09 2.523444458 2.523444458
1.1322896239333E-09 6.6548853164733E-09 2.523444458 2.523444458
0 6.6548853164733E-09 #DIV/0! 2.523444458

You might also like