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

Problems:

Solve the following. Use MS Excel. Indicate which data cell is the root and print screen the table used. Every print screen please

1. Approximate the root of the function below using Bisection Method with [a, b] = [1, 2] with error less than 0.005% for the

solution
f(x)=-2+6x =4x^2 + 0.5 x^3
[L,U] = [1,2]

coefficient of the function 2.000 6.000

a. Bisection Method

Iteration a b R f(a) f(R)


1 1.000000 2.000000 1.500000 0.500000 -0.312500
2 1.000000 1.500000 1.250000 0.500000 0.226563
3 1.250000 1.500000 1.375000 0.226563 -0.012695
4 1.250000 1.375000 1.312500 0.226563 0.114868
5 1.312500 1.375000 1.343750 0.114868 0.053024
6 1.343750 1.375000 1.359375 0.053024 0.020643
7 1.359375 1.375000 1.367188 0.020643 0.004093
8 1.367188 1.375000 1.371094 0.004093 -0.004272
9 1.367188 1.371094 1.369141 0.004093 -0.000082
10 1.367188 1.369141 1.368164 0.004093 0.002007
11 1.368164 1.369141 1.368652 0.002007 0.000963
12 1.368652 1.369141 1.368896 0.000963 0.000441
13 1.368896 1.369141 1.369019 0.000441 0.000179
14 1.369019 1.369141 1.369080 0.000179 0.000049

After 14 iterations using the bisection method, the root is approximetely equal to 1.369080 (R = 1.369080)

b. False Position Method

Iteration a b f(a) f(b) R


1 1.000000 2.000000 0.500000 -2.000000 1.200000
2 1.200000 2.000000 0.304000 -2.000000 1.305556
3 1.305556 2.000000 0.128076 -2.000000 1.347350
4 1.347350 2.000000 0.045649 -2.000000 1.361914
5 1.361914 2.000000 0.015291 -2.000000 1.366755
6 1.366755 2.000000 0.005015 -2.000000 1.368339
7 1.368339 2.000000 0.001633 -2.000000 1.368854
8 1.368854 2.000000 0.000531 -2.000000 1.369022
9 1.369022 2.000000 0.000172 -2.000000 1.369076
After 9 iterations using the false position method, the root is approximately equal to 1.369076 (R = 1.369076)

2. Determine the root of the function below using Bisection Method and False Position Method until Ea% = 0.Use 8 decimal d

a. Bisection Method

Iteration L U R f(L) f(R)


1.00000000 2.00000000 3.00000000 2.50000000 -0.02446811 -0.50010697
2.00000000 2.00000000 2.50000000 2.25000000 -0.02446811 -0.25501003
3.00000000 2.25000000 2.50000000 2.37500000 -0.25501003 -0.37588160
4.00000000 2.37500000 2.50000000 2.43750000 -0.37588160 -0.43759114
5.00000000 2.43750000 2.50000000 2.46875000 -0.43759114 -0.46875018
6.00000000 2.46875000 2.50000000 2.48437500 -0.46875018 -0.48440409
7.00000000 2.48437500 2.50000000 2.49218750 -0.48440409 -0.49224944
8.00000000 2.48437500 2.49218750 2.48828125 -0.48440409 -0.48832524
9.00000000 2.48437500 2.48828125 2.48632813 -0.48440409 -0.48636428
10.00000000 2.48437500 2.48632813 2.48535156 -0.48440409 -0.48538409
11.00000000 2.48535156 2.48632813 2.48583984 -0.48538409 -0.48587416
12.00000000 2.48583984 2.48632813 2.48608398 -0.48587416 -0.48611922
13.00000000 2.48608398 2.48632813 2.48620605 -0.48611922 -0.48624175
14.00000000 2.48608398 2.48620605 2.48614502 -0.48611922 -0.48618048
15.00000000 2.48614502 2.48620605 2.48617554 -0.48618048 -0.48621112
16.00000000 2.48617554 2.48620605 2.48619080 -0.48621112 -0.48622643
17.00000000 2.48619080 2.48620605 2.48619843 -0.48622643 -0.48623409
18.00000000 2.48619843 2.48620605 2.48620224 -0.48623409 -0.48623792
19.00000000 2.48620224 2.48620605 2.48620415 -0.48623792 -0.48623983
20.00000000 2.48620415 2.48620605 2.48620510 -0.48623983 -0.48624079
21.00000000 2.48620510 2.48620605 2.48620558 -0.48624079 -0.48624127
22.00000000 2.48620558 2.48620605 2.48620582 -0.48624127 -0.48624151
23.00000000 2.48620582 2.48620605 2.48620594 -0.48624151 -0.48624163
24.00000000 2.48620594 2.48620605 2.48620600 -0.48624163 -0.48624169
25.00000000 2.48620600 2.48620605 2.48620602 -0.48624169 -0.48624172
26.00000000 2.48620602 2.48620605 2.48620604 -0.48624172 -0.48624173
27.00000000 2.48620604 2.48620605 2.48620605 -0.48624173 -0.48624174
28.00000000 2.48620605 2.48620605 2.48620605 -0.48624174 -0.48624174
29.00000000 2.48620605 2.48620605 2.48620605 -0.48624174 -0.48624175
30.00000000 2.48620605 2.48620605 2.48620605 -0.48624175 -0.48624175
31.00000000 2.48620605 2.48620605 2.48620605 -0.48624175 -0.48624175
32.00000000 2.48620605 2.48620605 2.48620605 -0.48624175 -0.48624175
33.00000000 2.48620605 2.48620605 2.48620605 -0.48624175 -0.48624175

After 33 iterations using the bisection method, the root is approximetely equal to 1.944824 (R = 1.944824)

b. False Position Method

Iteration L U f(L) f(U) R


1 2.00000000 3.00000000 ### -1.02594671 1.97556802
2 1.97556802 3.00000000 ### -1.02594671 1.97275184
3 1.97275184 3.00000000 ### -1.02594671 1.97242419
4 1.97242419 3.00000000 ### -1.02594671 1.97238603
5 1.97238603 3.00000000 ### -1.02594671 1.97238158
6 1.97238158 3.00000000 ### -1.02594671 1.97238107
7 1.97238107 3.00000000 ### -1.02594671 1.97238101
8 1.97238101 3.00000000 ### -1.02594671 1.97238100
9 1.97238100 3.00000000 0.00000000 -1.02594671 1.97238100
10 1.97238100 3.00000000 0.00000000 -1.02594671 1.97238100

3. Determine the root of the function below using Bisection Method with no error. Use 8 decimal digits. Initial guess should be

a. Bisecting Method

Iteration L U R f(L) f(R)


1 0.00000000 4.00000000 2.00000000 -0.45969769 0.19295961
2 0.00000000 2.00000000 1.00000000 -0.45969769 -0.57467585
3 1.00000000 2.00000000 1.50000000 -0.57467585 -0.99663469
4 1.50000000 2.00000000 1.75000000 -0.99663469 -0.62111207
5 1.75000000 2.00000000 1.87500000 -0.62111207 -0.24141100
6 1.87500000 2.00000000 1.93750000 -0.24141100 -0.02498038
7 1.87500000 1.93750000 1.90625000 -0.24141100 -0.13425795
8 1.87500000 1.90625000 1.89062500 -0.24141100 -0.18819990
9 1.87500000 1.89062500 1.88281250 -0.24141100 -0.21490866
10 1.88281250 1.89062500 1.88671875 -0.21490866 -0.20157863
11 1.88671875 1.89062500 1.88867188 -0.20157863 -0.19489517
12 1.88867188 1.89062500 1.88964844 -0.19489517 -0.19154899
13 1.88867188 1.88964844 1.88916016 -0.19489517 -0.19322244
14 1.88916016 1.88964844 1.88940430 -0.19322244 -0.19238581
15 1.88916016 1.88940430 1.88928223 -0.19322244 -0.19280415
16 1.88916016 1.88928223 1.88922119 -0.19322244 -0.19301330
17 1.88916016 1.88922119 1.88919067 -0.19322244 -0.19311787
18 1.88916016 1.88919067 1.88917542 -0.19322244 -0.19317016
19 1.88917542 1.88919067 1.88918304 -0.19317016 -0.19314402
20 1.88918304 1.88919067 1.88918686 -0.19314402 -0.19313094
21 1.88918686 1.88919067 1.88918877 -0.19313094 -0.19312441
22 1.88918877 1.88919067 1.88918972 -0.19312441 -0.19312114
23 1.88918972 1.88919067 1.88919020 -0.19312114 -0.19311951
24 1.88919020 1.88919067 1.88919044 -0.19311951 -0.19311869
25 1.88919020 1.88919067 1.88919044 -0.19311951 -0.19311869

b. False Position Method

Iteration L U f(L) f(U) R


1 0.00000000 4.00000000 ### -2.03196583 -1.16951475
2 -1.16951475 4.00000000 ### -2.03196583 21.39591079
3 21.39591079 4.00000000 0.55438744 -2.03196583 17.66707973
4 21.39591079 17.66707973 0.55438744 -1.41378200 20.34558603
5 20.34558603 17.66707973 0.96546204 -1.41378200 19.25868780
6 20.34558603 19.25868780 0.96546204 -0.22971266 19.46758971
7 20.34558603 19.46758971 0.96546204 -1.40997628 19.98873732
8 20.34558603 19.98873732 0.96546204 -0.09515249 20.02075182
9 20.02075182 19.98873732 0.87849524 -0.09515249 19.99186602
10 19.99186602 19.98873732 0.03093977 -0.09515249 19.99109832
11 19.99109832 19.98873732 0.00009990 -0.09515249 19.99109584
12 19.99109584 19.98873732 0.00000027 -0.09515249 19.99109584
13 19.99109584 19.98873732 0.00000000 -0.09515249 19.99109584

4. Determine the lowest positive root of the function below using False Position. Solve until reaches no error. Use 6 decimal di

2 1.5
False Position Method

Iteration L U f(L) f(U) R


1 0.0000000 4.0000000 2.0000000 ### 0.0009372
2 0.0009372 4.0000000 2.0093721 ### 0.0018786
3 0.0018786 4.0000000 2.0187858 ### 0.0028241
4 0.0028241 4.0000000 2.0282415 ### 0.0037739
5 0.0037739 4.0000000 2.0377392 ### 0.0047279
6 0.0047279 4.0000000 2.0472790 ### 0.0056861
7 0.0056861 4.0000000 2.0568612 ### 0.0066486
8 0.0066486 4.0000000 2.0664860 ### 0.0076153
9 0.0076153 4.0000000 2.0761535 ### 0.0085864
10 0.0085864 4.0000000 2.0858638 ### 0.0095617
11 0.0095617 4.0000000 2.0956171 ### 0.0105414
12 0.0105414 4.0000000 2.1054137 ### 0.0115254
13 0.0115254 4.0000000 2.1152536 ### 0.0125137
14 0.0125137 4.0000000 2.1251370 ### 0.0135064
15 0.0135064 4.0000000 2.1350642 ### 0.0145035
16 0.0145035 4.0000000 2.1450352 ### 0.0155050
17 0.0155050 4.0000000 2.1550503 ### 0.0165110
18 0.0165110 4.0000000 2.1651096 ### 0.0175213
19 0.0175213 4.0000000 2.1752133 ### 0.0185362
20 0.0185362 4.0000000 2.1853615 ### 0.0195555
21 0.0195555 4.0000000 2.1955545 ### 0.0205793
22 0.0205793 4.0000000 2.2057923 ### 0.0216076
23 0.0216076 4.0000000 2.2160753 ### 0.0226404
24 0.0226404 4.0000000 2.2264034 ### 0.0236778
25 0.0236778 4.0000000 2.2367770 ### 0.0247197
26 0.0247197 4.0000000 2.2471962 ### 0.0257662
27 0.0257662 4.0000000 2.2576612 ### 0.0268173
28 0.0268173 4.0000000 2.2681721 ### 0.0278730
29 0.0278730 4.0000000 2.2787291 ### 0.0289333
30 0.0289333 4.0000000 2.2893324 ### 0.0299983
31 0.0299983 4.0000000 2.2999822 ### 0.0310680
32 0.0310680 4.0000000 2.3106786 ### 0.0321423
33 0.0321423 4.0000000 2.3214218 ### 0.0332214
34 0.0332214 4.0000000 2.3322120 ### 0.0343052
35 0.0343052 4.0000000 2.3430494 ### 0.0353937
36 0.0353937 4.0000000 2.3539342 ### 0.0364869
37 0.0364869 4.0000000 2.3648664 ### 0.0375849
38 0.0375849 4.0000000 2.3758464 ### 0.0386878
39 0.0386878 4.0000000 2.3868742 ### 0.0397954
40 0.0397954 4.0000000 2.3979501 ### 0.0409078
41 0.0409078 4.0000000 2.4090742 ### 0.0420251
42 0.0420251 4.0000000 2.4202468 ### 0.0431473
43 0.0431473 4.0000000 2.4314679 ### 0.0442744
44 0.0442744 4.0000000 2.4427378 ### 0.0454063
45 0.0454063 4.0000000 2.4540567 ### 0.0465432
46 0.0465432 4.0000000 2.4654246 ### 0.0476850
47 0.0476850 4.0000000 2.4768419 ### 0.0488317
48 0.0488317 4.0000000 2.4883087 ### 0.0499835
49 0.0499835 4.0000000 2.4998252 ### 0.0511402
50 0.0511402 4.0000000 2.5113915 ### 0.0523019
51 0.0523019 4.0000000 2.5230078 ### 0.0534687
52 0.0534687 4.0000000 2.5346744 ### 0.0546405
53 0.0546405 4.0000000 2.5463914 ### 0.0558174
54 0.0558174 4.0000000 2.5581589 ### 0.0569993
55 0.0569993 4.0000000 2.5699772 ### 0.0581864
56 0.0581864 4.0000000 2.5818464 ### 0.0593786
57 0.0593786 4.0000000 2.5937668 ### 0.0605759
58 0.0605759 4.0000000 2.6057384 ### 0.0617784
59 0.0617784 4.0000000 2.6177616 ### 0.0629860
60 0.0629860 4.0000000 2.6298364 ### 0.0641989
61 0.0641989 4.0000000 2.6419631 ### 0.0654169
62 0.0654169 4.0000000 2.6541418 ### 0.0666402
63 0.0666402 4.0000000 2.6663727 ### 0.0678688
64 0.0666402 0.0678688 2.6663727 2.6786560 -0.2000461
65 0.0666402 -0.2000461 2.6663727 -0.0029918 -0.1997472
66 -0.1997472 -0.2000461 0.0000127 -0.0029918 -0.1997485
67 -0.1997485 -0.2000461 0.0000000 -0.0029918 -0.1997485

5. The floating ball has a specific gravity of 0.6 and has a radius of 5.5cm. You are asked to find the depth to which the ball is su
The equation that gives the depth x to which the ball is submerged under water is given by

Find the depth x to which the ball is submerged under water.

[L,U] = [0, 0.11]

1 0.165 0.00039930

Bisecting Method

Iteration L U R f(L) f(R)


1 0.00000000 0.11000000 0.05500000 0.00039930 0.00006655
2 0.05500000 0.11000000 0.08250000 0.00006655 -0.00016222
3 0.05500000 0.08250000 0.06875000 0.00006655 -0.00005563
4 0.05500000 0.06875000 0.06187500 0.00006655 0.00000448
5 0.06187500 0.06875000 0.06531250 0.00000448 -0.00002594
6 0.06531250 0.06875000 0.06703125 -0.00002594 -0.00004089
7 0.06703125 0.06875000 0.06789063 -0.00004089 -0.00004829
8 0.06789063 0.06875000 0.06832031 -0.00004829 -0.00005197
9 0.06832031 0.06875000 0.06853516 -0.00005197 -0.00005380
10 0.06853516 0.06875000 0.06864258 -0.00005380 -0.00005472
11 0.06864258 0.06875000 0.06869629 0.00000000 0.00000000
12 0.06869629 0.06875000 0.06872314 0.00000000 0.00000000
13 0.06872314 0.06875000 0.06873657 0.00000000 0.00000000
14 0.06873657 0.06875000 0.06874329 0.00000000 0.00000000
15 0.06874329 0.06875000 0.06874664 0.00000000 0.00000000
e table used. Every print screen please include your name as guide.

2] with error less than 0.005% for the first time. Verify result using False Position Method. Use 6 decimal digits.

4.000 0.50000000

f(a)f(R) Ea(%)
-0.156250
0.113281 20.000000
-0.002876 9.090909
0.026025 4.761905
0.006091 2.325581
0.001095 1.149425
0.000084 0.571429
-0.000017 0.284900
0.000000 0.142653
0.000008 0.071378
0.000002 0.035676
0.000000 0.017835
0.000000 0.008917
0.000000 0.004458

qual to 1.369080 (R = 1.369080)

f(R) f(a)f(R) Ea(%)


0.304000 0.152000
0.128076 0.038935 8.085106
0.045649 0.005847 3.101964
0.015291 0.000698 1.069388
0.005015 0.000077 0.354224
0.001633 0.000008 0.115743
0.000531 0.000001 0.037649
0.000172 0.000000 0.012229
0.000056 0.000000 0.003970
y equal to 1.369076 (R = 1.369076)

Method until Ea% = 0.Use 8 decimal digits. Initial guess should be different from your classmates.

f(L)f(R) Ea(%)
0.01223667 -
0.00623961 11.11111111
0.09585358 5.26315789
0.16448246 2.56410256
0.20512093 1.26582278
0.22706451 0.62893082
0.23844764 0.31347962
0.23654674 0.15698587
0.23559685 0.07855460
0.23512204 0.03929273
0.23583559 0.01964251
0.23619277 0.00982029
0.23637146 0.00490990
0.23634168 0.00245501
0.23638635 0.00122749
0.23640870 0.00061374
0.23641987 0.00030687
0.23642545 0.00015343
0.23642825 0.00007672
0.23642964 0.00003836
0.23643034 0.00001918
0.23643069 0.00000959
0.23643086 0.00000479
0.23643095 0.00000240
0.23643099 0.00000120
0.23643102 0.00000060
0.23643103 0.00000030
0.23643103 0.00000015
0.23643104 0.00000007
0.23643104 0.00000004
0.23643104 0.00000002
0.23643104 0.00000001
0.23643104 0.00000000

qual to 1.944824 (R = 1.944824)

f(R) f(L)f(R) Ea(%)


-0.00281261 -0.00555651 -
-0.00032713 -0.00064534 0.14275388
-0.00003810 -0.00007515 0.01661138
-0.00000444 -0.00000875 0.00193477
-0.00000052 -0.00000102 0.00022537
-0.00000006 -0.00000012 0.00002625
-0.00000001 -0.00000001 0.00000306
0.00000000 0.00000000 0.00000036
0.00000000 0.00000000 0.00000004
0.00000000 0.00000000 0.00000000

decimal digits. Initial guess should be different from your classmates.

f(L)f(R) Ea(%)
-0.08870309 -
0.26417716 100.00000000
0.57274189 33.33333333
0.61902184 14.28571429
0.14994329 6.66666667
0.00603054 3.22580645
0.03241135 1.63934426
0.04543353 0.82644628
0.05188131 0.41493776
0.04332099 0.20703934
0.03928670 0.10341262
0.03733197 0.05167959
0.03765812 0.02584647
0.03717326 0.01292157
0.03725409 0.00646120
0.03729450 0.00323070
0.03731471 0.00161538
0.03732481 0.00080770
0.03730966 0.00040385
0.03730209 0.00020192
0.03729830 0.00010096
0.03729641 0.00005048
0.03729546 0.00002524
0.03729499 0.00001262
0.03729499 0.00000000

f(R) f(L)f(R) Ea(%)


-2.63580184 3.08260913
0.55438744 11.86162415 105.46606667
-1.41378200 -24.97739935 21.10609741
0.96546204 19.64289091 13.16504864
-0.22971266 -4.42396443 5.64367752
-1.40997628 -27.44883973 1.07307541
-0.09515249 -1.90197816 2.60720621
0.87849524 17.58813521 0.15990659
0.03093977 0.61854376 0.14448773
0.00009990 0.00199706 0.00384023
0.00000027 0.00000548 0.00001239
0.00000000 0.00000002 0.00000003
0.00000000 0.00000000 0.00000000

ntil reaches no error. Use 6 decimal digits. Initial guess should be different from your classmates.

10 2.00000000

f(R) f(L)f(R) Ea(%)


2.0093721 4.0187441 -
2.0187858 4.0564919 50.1109914
2.0282415 4.0945852 33.4813821
2.0377392 4.1330271 25.1666223
2.0472790 4.1718206 20.1778019
2.0568612 4.2109689 16.8519511
2.0664860 4.2504750 14.4763683
2.0761535 4.2903421 12.6947029
2.0858638 4.3305733 11.3089822
2.0956171 4.3711718 10.2004227
2.1054137 4.4121409 9.2934347
2.1152536 4.4534838 8.5376254
2.1251370 4.4952037 7.8981071
2.1350642 4.5373040 7.3499603
2.1450352 4.5797879 6.8749106
2.1550503 4.6226588 6.4592521
2.1651096 4.6659200 6.0925040
2.1752133 4.7095751 5.7665144
2.1853615 4.7536273 5.4748477
2.1955545 4.7980802 5.2123554
2.2057923 4.8429372 4.9748697
2.2160753 4.8882018 4.7589803
2.2264034 4.9338776 4.5618705
2.2367770 4.9799681 4.3811926
2.2471962 5.0264769 4.2149748
2.2576612 5.0734077 4.0615485
2.2681721 5.1207641 3.9194924
2.2787291 5.1685498 3.7875882
2.2893324 5.2167684 3.6647856
2.2999822 5.2654238 3.5501744
2.3106786 5.3145196 3.4429618
2.3214218 5.3640597 3.3424542
2.3322120 5.4140479 3.2480419
2.3430494 5.4644881 3.1591872
2.3539342 5.5153841 3.0754134
2.3648664 5.5667399 2.9962973
2.3758464 5.6185593 2.9214611
2.3868742 5.6708464 2.8505669
2.3979501 5.7236053 2.7833113
2.4090742 5.7768398 2.7194215
2.4202468 5.8305541 2.6586511
2.4314679 5.8847523 2.6007772
2.4427378 5.9394386 2.5455978
2.4540567 5.9946170 2.4929290
2.4654246 6.0502918 2.4426035
2.4768419 6.1064672 2.3944684
2.4883087 6.1631474 2.3483838
2.4998252 6.2203369 2.3042216
2.5113915 6.2780397 2.2618639
2.5230078 6.3362605 2.2212025
2.5346744 6.3950034 2.1821376
2.5463914 6.4542730 2.1445770
2.5581589 6.5140737 2.1084355
2.5699772 6.5744100 2.0736342
2.5818464 6.6352864 2.0401000
2.5937668 6.6967074 2.0077651
2.6057384 6.7586777 1.9765661
2.6177616 6.8212019 1.9464444
2.6298364 6.8842847 1.9173451
2.6419631 6.9479306 1.8892171
2.6541418 7.0121446 1.8620125
2.6663727 7.0769312 1.8356867
2.6786560 7.1422954 1.8101977
-0.0029918 -0.0079774 133.9265753
0.0000127 0.0000338 0.1496411
0.0000000 0.0000000 0.0006309
0.0000000 0.0000000 0.0000000

o find the depth to which the ball is submerged when floating in water.

f(L)f(R) Ea(%)
0.00000003 -
-0.00000001 33.33333333
0.00000000 20.00000000
0.00000000 11.11111111
0.00000000 5.26315789
0.00000000 2.56410256
0.00000000 1.26582278
0.00000000 0.62893082
0.00000000 0.31347962
0.00000000 0.15649452
0.00000000 0.07818608
0.00000000 0.03907776
0.00000000 0.01953507
0.00000000 0.00976658
0.00000000 0.00488305

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