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

a 0 initial value 0.

5
b 2
N 10 Runge Kutta Method of Order 4
h 0.2 (b-a)/N

i t_i w_i exact error k_1 k_2


0 0.00000 0.5000000 0.5000000 0.0000000 #VALUE! #VALUE!
1 0.20000 #VALUE! 0.8292986 #VALUE! #VALUE! #VALUE!
2 0.40000 #VALUE! 1.2140877 #VALUE! #VALUE! #VALUE!
3 0.60000 #VALUE! 1.6489406 #VALUE! #VALUE! #VALUE!
4 0.80000 #VALUE! 2.1272295 #VALUE! #VALUE! #VALUE!
5 1.00000 #VALUE! 2.6408591 #VALUE! #VALUE! #VALUE!
6 1.20000 #VALUE! 3.1799415 #VALUE! #VALUE! #VALUE!
7 1.40000 #VALUE! 3.7324000 #VALUE! #VALUE! #VALUE!
8 1.60000 #VALUE! 4.2834838 #VALUE! #VALUE! #VALUE!
9 1.80000 #VALUE! 4.8151763 #VALUE! #VALUE! #VALUE!
10 2.00000 #VALUE! 5.3054720 #VALUE! #VALUE! #VALUE!
11 2.20000 #VALUE! 5.7274933 #VALUE! #VALUE! #VALUE!
12 2.40000 #VALUE! 6.0484118 #VALUE! #VALUE! #VALUE!
13 2.60000 #VALUE! 6.2281310 #VALUE! #VALUE! #VALUE!
14 2.80000 #VALUE! 6.2176766 #VALUE! #VALUE! #VALUE!
15 3.00000 #VALUE! 5.9572315 #VALUE! #VALUE! #VALUE!
16 3.20000 #VALUE! 5.3737349 #VALUE! #VALUE! #VALUE!
17 3.40000 #VALUE! 4.3779500 #VALUE! #VALUE! #VALUE!
18 3.60000 #VALUE! 2.8608828 #VALUE! #VALUE! #VALUE!
19 3.80000 #VALUE! 0.6894078 #VALUE! #VALUE! #VALUE!
20 4.00000 #VALUE! -2.2990750 #VALUE! #VALUE! #VALUE!
21 4.20000 #VALUE! -6.3031655 #VALUE! #VALUE! #VALUE!
22 4.40000 #VALUE! -11.5654343 #VALUE! #VALUE! #VALUE!
23 4.60000 #VALUE! -18.3821578 #VALUE! #VALUE! #VALUE!
24 4.80000 #VALUE! -27.1152088 #VALUE! #VALUE! #VALUE!
25 5.00000 #VALUE! -38.2065796 #VALUE! #VALUE! #VALUE!
26 5.20000 #VALUE! -52.1961209 #VALUE! #VALUE! #VALUE!
27 5.40000 #VALUE! -69.7432081 #VALUE! #VALUE! #VALUE!
28 5.60000 #VALUE! -91.6532037 #VALUE! #VALUE! #VALUE!
29 5.80000 #VALUE! -118.9097800 #VALUE! #VALUE! #VALUE!
30 6.00000 #VALUE! -152.7143967 #VALUE! #VALUE! #VALUE!
31 6.20000 #VALUE! -194.5345205 #VALUE! #VALUE! #VALUE!
32 6.40000 #VALUE! -246.1625189 #VALUE! #VALUE! #VALUE!
od of Order 4

k_3 k_4
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
To change the derivative function f, click on tools. then macros. Edit the macro named f

1. On the Tools menu, point to Macro, and then click Visual Basic Editor.
2. On the Insert menu in the Microsoft Visual Basic window, click Module.
3. In the Modulen window, type the code for your function. For example, a function to calculate a 6% sales
commission might look like this:

The first line in the example above creates a function named Commission, which performs its calculations on a
number or cell reference. The function uses a variable, MyNum, to store the number or value from the cell. The
second line calculates the value of the Commission function by multiplying the number or cell reference
(MyNum) by 0.06 (a more sophisticated function could have several lines of code to perform its calculations).
The third line ends the function code.