P (X) X Q (X) 1 F (X) (X 2+2) Sin (X) Xi
P (X) X Q (X) 1 F (X) (X 2+2) Sin (X) Xi
P (X) X Q (X) 1 F (X) (X 2+2) Sin (X) Xi
2h
p(x)=x q(x)=1 f(x)=(x^2+2)*Sin(x) xi
0 1 0 0
0.098175 1 0.19697899784621 0.0982
0.19635 1 0.39770198895718 0.1963
0.294524 1 0.605749973995053 0.2945
0.392699 1 0.824381459859781 0.3927
0.490874 1 1.05637988254938 0.4909
0.589049 1 1.30391126975921 0.589
0.687223 1 1.56839528582802 0.6872
0.785398 1 1.85039257485053 0.7854
0.883573 1 2.14951104069066 0.8836
0.981748 1 2.46433337938568 0.9817
1.079922 1 2.79236781486394 1.0799
1.178097 1 3.13002358848114 1.1781
1.276272 1 3.47261232263796 1.2763
1.374447 1 3.81437592517981 1.3744
1.472622 1 4.14854123128256 1.4726
1.570796 1 4.46740110027234 1.5708
точ роз
ai bi ci di alpha_i beta_i yi x y(x) yi_2h
0 0 0 0 0 0
1.96145 -3.922894 2.03855 0.03067 0.5197 -0.00782 0.00179 0.19635 0.00251 0.00179
1.92289 -3.922894 2.07711 0.06356 0.7104 -0.02688 0.01849 0.392699 0.01988 0.0185
1.88434 -3.922894 2.11566 0.10054 0.8187 -0.05851 0.06387 0.589049 0.06579 0.06387
1.84579 -3.922894 2.15421 0.14268 0.8932 -0.10394 0.14948 0.785398 0.15175 0.14948
1.80723 -3.922894 2.19277 0.19002 0.9498 -0.16367 0.28372 0.981748 0.28604 0.28372
1.76868 -3.922894 2.23132 0.24134 0.9948 -0.23666 0.47103 1.178097 0.47304 0.47103
1.73013 -3.922894 2.26987 0.29411 1.0309 -0.31955 0.71139 1.374447 0.71264 0.71139
1.69157 -3.922894 2.30843 0.34446 1.0594 -0.40615 1 1.570796 1 1
точний розвязок
ai bi ci di alpha_i beta_i yi y(x)
0 0 0 0
1.99036 -3.980723 2.00964 0.0038 0.5048 -0.00095 0.00022 0.00032
1.98072 -3.980723 2.01928 0.00767 0.6774 -0.00321 0.00233 0.00251
1.97109 -3.980723 2.02891 0.01168 0.7669 -0.0068 0.00818 0.00844
1.96145 -3.980723 2.03855 0.01589 0.8232 -0.01181 0.01953 0.01988
1.95181 -3.980723 2.04819 0.02036 0.8628 -0.01828 0.03806 0.03848
1.94217 -3.980723 2.05783 0.02513 0.8927 -0.02631 0.06531 0.06579
1.93253 -3.980723 2.06747 0.03023 0.9166 -0.03595 0.10263 0.10316
1.92289 -3.980723 2.07711 0.03567 0.9364 -0.04724 0.15118 0.15175
1.91326 -3.980723 2.08674 0.04144 0.9532 -0.06022 0.21189 0.21248
1.90362 -3.980723 2.09638 0.0475 0.9678 -0.07485 0.28546 0.28604
1.89398 -3.980723 2.10602 0.05383 0.9806 -0.09107 0.37229 0.37285
1.88434 -3.980723 2.11566 0.06034 0.9919 -0.10874 0.47254 0.47304
1.8747 -3.980723 2.1253 0.06694 1.0019 -0.12766 0.58603 0.58646
1.86506 -3.980723 2.13494 0.07353 1.0108 -0.14754 0.71233 0.71264
1.85543 -3.980723 2.14457 0.07997 1.0187 -0.16802 0.85067 0.85084
1.84579 -3.980723 2.15421 0.08612 1.0256 -0.18865 1 1
yi_h |yi_2h-yi_h|
0 0
0.00233 0.000538
0.01953 0.001034
0.06531 0.001439
0.15118 0.001696
0.28546 0.001741
0.47254 0.001509
0.71233 0.000942
1 0
0.00058
X0= 0 2h
Y0= 0 p(x)=0 q(x)=-2 f(x)=x xi
Xn= 1 0 -1 0 0
Yn= 0 0 -1 -0.2 0.2
E= 0.01 0 -1 -0.4 0.4
h0= 0.1 0 -1 -0.6 0.6
n0= 10 0 -1 -0.8 0.8
10 0 -1 -1 1
h= 0.1
2h= 0.2
p(x)=x q(x)=12+2)*Sin(x)
0 1 0
0.1 1 0.200665
0.2 1 0.405285
0.3 1 0.617637
0.4 1 0.841144
0.5 1 1.078707
0.6 1 1.332556
0.7 1 1.604102
0.8 1 1.89382
ai bi ci di alpha_i beta_i yi y(x)
0 0 0 0
2 -4.08 2 -0.016 0.490196 0.003922 0.028594 0.002656
2 -4.08 2 -0.032 0.645243 0.012854 0.050333 0.020994
2 -4.08 2 -0.048 0.716971 0.026423 0.058084 0.069441
2 -4.08 2 -0.064 0.755841 0.044159 0.044159 0.159991
2 -4.08 2 -0.08 0.77872 0.065536 0 0.301169
h
xi ai bi ci di alpha_i beta_i yi
0 0 0 -0.001997
0.1 1.99 -2.01 2.01 0.004013 1 -0.001997 -0.552594
0.2 1.98 -2.01 2.02 0.008106 67.33333 -0.40197 -0.150624
0.3 1.97 -2.01 2.03 0.012353 -0.015539 0.006156 -0.002328
0.4 1.96 -2.01 2.04 0.016823 0.999776 -0.002331 -0.000175
0.5 1.95 -2.01 2.05 0.021574 33.91977 -0.432185 0.432107
0.6 1.94 -2.01 2.06 0.026651 -0.032291 0.013561 0.012339
0.7 1.93 -2.01 2.07 0.032082 0.998879 -0.002852 -0.470443
0.8 1.92 -2.01 2.08 0.037876 22.57154 -0.470443 0
X0= -2 2h
Y0= 0 p(x)=-2 q(x)=5 f(x)=(4*x+8)*exp^x xi
Xn= 0 -2 5 0 -2
Yn= 2 -2 5 0.059827447689054 -1.9
E= 0.01 -2 5 0.132239110577269 -1.8
h0= 0.1 -2 5 0.219220228863282 -1.7
n0= 20 -2 5 0.323034428791449 -1.6
20 -2 5 0.44626032029686 -1.5
h= 0.05 -2 5 0.591832713459856 -1.4
2h= 0.1 -2 5 0.763089020495236 -1.3
-2 5 0.963821478119048 -1.2
-2 5 1.19833590131309 -1.1
-2 5 1.47151776468577 -1
-2 5 1.78890650285864 -0.9
-2 5 2.15677902776267 -0.8
-2 5 2.58224357971533 -0.7
-2 5 3.07334516212655 -0.6
-2 5 3.6391839582758 -0.5
-2 5 4.2900482946281 -0.4
-2 5 5.03756390063569 -0.3
-2 5 5.89486142216148 -0.2
-2 5 6.8767643770733 -0.1
-2 5 8.00000000000001 0.00
h
p(x)=-2 q(x)=5 f(x)=(4*x+8)*exp^x xi
-2 5 0 -2
-2 5 0.028454814317303 -1.95
-2 5 0.059827447689054 -1.9
-2 5 0.094342299788177 -1.85
-2 5 0.132239110577269 -1.8
-2 5 0.173773943450445 -1.75
-2 5 0.219220228863282 -1.7
-2 5 0.268869872069056 -1.65
-2 5 0.323034428791449 -1.6
-2 5 0.382046352888138 -1.55
-2 5 0.44626032029686 -1.5
-2 5 0.516054633806355 -1.45
-2 5 0.591832713459856 -1.4
-2 5 0.674024677679319 -1.35
-2 5 0.763089020495236 -1.3
-2 5 0.859514390580571 -1.25
-2 5 0.963821478119048 -1.2
-2 5 1.07656501588878 -1.15
-2 5 1.19833590131309 -1.1
-2 5 1.32976344662239 -1.05
-2 5 1.47151776468577 -1.00
-2 5 1.62431229850891 -0.95
-2 5 1.78890650285864 -0.90
-2 5 1.96610868696415 -0.85
-2 5 2.15677902776267 -0.80
-2 5 2.36183276370508 -0.75
-2 5 2.58224357971533 -0.70
-2 5 2.81904719450949 -0.65
-2 5 3.07334516212655 -0.60
-2 5 3.34630890020683 -0.55
-2 5 3.63918395827581 -0.50
-2 5 3.953294540055 -0.45
-2 5 4.2900482946281 -0.40
-2 5 4.65094139214352 -0.35
-2 5 5.03756390063569 -0.30
-2 5 5.45160548149984 -0.25
-2 5 5.89486142216148 -0.20
-2 5 6.36923902554544 -0.15
-2 5 6.8767643770733 -0.10
-2 5 7.41958951110558 -0.05
-2 5 8.00000000000001 0.00
Інтегральна крива всіх розв
ai bi ci di alpha_i beta_i yi x y(x) yi_2h
0 0 0 -2 0 0
2.2 -3.9 1.8 0.0012 0.4615 -0.00031 0.01513 -1.9 0.01496 0.01513
2.2 -3.9 1.8 0.00264 0.624 -0.00115 0.03344 -1.8 0.03306 0.03344
2.2 -3.9 1.8 0.00438 0.7123 -0.00274 0.05543 -1.7 0.05481 0.05543
2.2 -3.9 1.8 0.00646 0.7715 -0.00535 0.08167 -1.6 0.08076 0.08167
2.2 -3.9 1.8 0.00893 0.8172 -0.0094 0.11278 -1.5 0.11157 0.11278
2.2 -3.9 1.8 0.01184 0.8563 -0.01546 0.14951 -1.4 0.14796 0.14951
2.2 -3.9 1.8 0.01526 0.8928 -0.02444 0.19267 -1.3 0.19077 0.19267
2.2 -3.9 1.8 0.01928 0.9298 -0.03773 0.24319 -1.2 0.24096 0.24319
2.2 -3.9 1.8 0.02397 0.9706 -0.05769 0.30214 -1.1 0.29958 0.30214
2.2 -3.9 1.8 0.02943 1.02 -0.0886 0.37072 -1 0.36788 0.37072
2.2 -3.9 1.8 0.03578 1.087 -0.13932 0.45029 -0.9 0.44723 0.45029
2.2 -3.9 1.8 0.04314 1.1932 -0.23177 0.54241 -0.8 0.53919 0.54241
2.2 -3.9 1.8 0.05164 1.4118 -0.44043 0.64882 -0.7 0.64556 0.64882
2.2 -3.9 1.8 0.06147 2.2669 -1.29767 0.77153 -0.6 0.76834 0.77153
2.2 -3.9 1.8 0.07278 -1.6557 2.69301 0.9128 -0.5 0.9098 0.9128
2.2 -3.9 1.8 0.0858 0.2386 0.77411 1.07518 -0.4 1.07251 1.07518
2.2 -3.9 1.8 0.10075 0.5333 0.47476 1.26158 -0.3 1.25939 1.26158
2.2 -3.9 1.8 0.1179 0.6601 0.33982 1.47529 -0.2 1.47372 1.47529
2.2 -3.9 1.8 0.13754 0.7354 0.24924 1.72003 -0.1 1.71919 1.72003
2.2 -3.9 1.8 0.16 0 0.17016 2 0.00 2 2
точний розвязок
ai bi ci di alpha_i beta_i yi y(x)
0 0 0 0
2.1 -3.975 1.9 0.00014 0.478 -3.6E-05 0.00713 0.00711
2.1 -3.975 1.9 0.0003 0.6395 -0.00013 0.015 0.01496
2.1 -3.975 1.9 0.00047 0.7219 -0.00028 0.02365 0.02359
2.1 -3.975 1.9 0.00066 0.7726 -0.00051 0.03316 0.03306
2.1 -3.975 1.9 0.00087 0.8077 -0.00082 0.04357 0.04344
2.1 -3.975 1.9 0.0011 0.8337 -0.00124 0.05496 0.05481
2.1 -3.975 1.9 0.00134 0.8543 -0.00177 0.06741 0.06722
2.1 -3.975 1.9 0.00162 0.8711 -0.00245 0.08099 0.08076
2.1 -3.975 1.9 0.00191 0.8855 -0.00329 0.09578 0.09551
2.1 -3.975 1.9 0.00223 0.8982 -0.00432 0.11187 0.11157
2.1 -3.975 1.9 0.00258 0.9096 -0.00558 0.12936 0.12901
2.1 -3.975 1.9 0.00296 0.9202 -0.0071 0.14835 0.14796
2.1 -3.975 1.9 0.00337 0.9302 -0.00895 0.16894 0.16851
2.1 -3.975 1.9 0.00382 0.9398 -0.01119 0.19125 0.19077
2.1 -3.975 1.9 0.0043 0.9494 -0.01389 0.2154 0.21488
2.1 -3.975 1.9 0.00482 0.9589 -0.01715 0.24152 0.24096
2.1 -3.975 1.9 0.00538 0.9688 -0.02111 0.26975 0.26914
2.1 -3.975 1.9 0.00599 0.9791 -0.02593 0.30023 0.29958
2.1 -3.975 1.9 0.00665 0.9902 -0.03184 0.33312 0.33244
2.1 -3.975 1.9 0.00736 1.0023 -0.03916 0.36859 0.36788
2.1 -3.975 1.9 0.00812 1.0159 -0.04831 0.40682 0.40608
2.1 -3.975 1.9 0.00894 1.0317 -0.05995 0.448 0.44723
2.1 -3.975 1.9 0.00983 1.0507 -0.07505 0.49232 0.49153
2.1 -3.975 1.9 0.01078 1.0743 -0.09521 0.54 0.53919
2.1 -3.975 1.9 0.01181 1.1053 -0.12319 0.59128 0.59046
2.1 -3.975 1.9 0.01291 1.1489 -0.16423 0.64638 0.64556
2.1 -3.975 1.9 0.0141 1.2161 -0.22977 0.70558 0.70476
2.1 -3.975 1.9 0.01537 1.3369 -0.35032 0.76914 0.76834
2.1 -3.975 1.9 0.01673 1.6274 -0.64443 0.83736 0.83658
2.1 -3.975 1.9 0.0182 3.4077 -2.45983 0.91055 0.9098
2.1 -3.975 1.9 0.01977 -0.5973 1.63001 0.98904 0.98832
2.1 -3.975 1.9 0.02145 0.3633 0.65049 1.07318 1.07251
2.1 -3.975 1.9 0.02325 0.5915 0.41805 1.16335 1.16274
2.1 -3.975 1.9 0.02519 0.6953 0.31203 1.25994 1.25939
2.1 -3.975 1.9 0.02726 0.7555 0.24971 1.36338 1.3629
2.1 -3.975 1.9 0.02947 0.7955 0.20721 1.47411 1.47372
2.1 -3.975 1.9 0.03185 0.8245 0.17501 1.59262 1.59231
2.1 -3.975 1.9 0.03438 0.8469 0.14848 1.7194 1.71919
2.1 -3.975 1.9 0.0371 0.865 0.12506 1.85501 1.8549
2.1 -3.975 1.9 0.04 0 0.10314 2 2
на крива всіх розвязків
yi_h |yi_2h-yi_h|
|y(x)-yi_2h|
|y(x)-yi_h|
0 0 0 0
0.015 0.00013 0.00017 4.27E-05
0.03316 0.00028 0.00038 9.54E-05
0.05496 0.00047 0.00062 0.000158 0.5
0.5
-0.5
-1
-1.5
-2
-2.5
0.5
при h=0
0.5
при h=0
-1
-2
0.5
-0.5
-1
-2.5
Точний розвязок
при h=0.05
при 2h=0.1
при 2h=0.1
при h=0.05
при h=0.05
Точний розвязок