You are on page 1of 2

LICTAOA, Redemptor C. EXERCISE 10.

1: Exercise on Numerical Solution of Differential Equations


VIZON, Cyrus Alexander D. CH050P/B31

EULER METHOD

Exact solution,
𝑦 𝑒 𝑥 1

n xn yn increment  exact values error


0 0.0 0.00000 0.00000 0.00000 0.00000
1.0 0.2 0.00000 0.04000 0.02140 0.02140
2.0 0.4 0.04000 0.08800 0.09182 0.05182
3.0 0.6 0.12800 0.14560 0.22212 0.09412
4.0 0.8 0.27360 0.21472 0.42554 0.15194
5.0 1.0 0.48832 0.29766 0.71828 0.22996
6.0 1.2 0.78598 0.39720 1.12012 0.33413
7.0 1.4 1.18318 0.51664 1.65520 0.47202
8.0 1.6 1.69982 0.65996 2.35303 0.65322
9.0 1.8 2.35978 0.83196 3.24965 0.88987
10.0 2.0 3.19174 1.03835 4.38906 1.19732
RUNGE‐KUTTA METHOD

Exact solution,
𝑦 3𝑒 𝑥 1

n xn yn k1 k2 k3 k4 increment exact values error


0 0.0 2.000000 0.400000 0.460000 0.466000 0.533200 0.464200 2.000000 0.000000
1.0 0.2 2.464200 0.532840 0.606124 0.613452 0.695530 0.611254 2.464208 0.000008
2.0 0.4 3.075454 0.695091 0.784600 0.793551 0.893801 0.790865 3.075474 0.000020
3.0 0.6 3.866319 0.893264 1.002590 1.013523 1.135968 1.010243 3.866356 0.000037
4.0 0.8 4.876562 1.135312 1.268844 1.282197 1.431752 1.278191 4.876623 0.000060
5.0 1.0 6.154753 1.430951 1.594046 1.610355 1.793022 1.605462 6.154845 0.000092
6.0 1.2 7.760216 1.792043 1.991247 2.011168 2.234277 2.005192 7.760351 0.000135
7.0 1.4 9.765408 2.233082 2.476390 2.500720 2.773226 2.493421 9.765600 0.000192
8.0 1.6 12.258829 2.771766 3.068942 3.098660 3.431498 3.089745 12.259097 0.000268
9.0 1.8 15.348574 3.429715 3.792686 3.828983 4.235511 3.818094 15.348942 0.000369
10.0 2.0 19.166668 4.233334 4.676667 4.721000 5.217534 4.707700 19.167168 0.000501

You might also like