void kouell double double double y0 double y0d int ind derVals ind y0d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
void kouell(double a, double b, double y0, double y0d)
{
int ind = 0;
derVals[ind] = y0d;
yVals[ind] = y0;
funcVals[ind] = funForFireMethod(x, derVals[ind], ind);
for (int i = 0; i < 2; ++i)
{
double x = a + ind * h;
yVals[ind + 1] = getNextByRunge(x, yVals[ind], secFunFir, h, ind);
derVals[ind + 1] = getNextByRunge(x, derVals[ind], funForFireMethod, h, ind);
ind++;
}
while (a + ind * h < b / 2)
{
double x = a + ind * h;
yVals[ind + 1] = getNextByRunge(x, yVals[ind], secFunFir, h, ind);
derVals[ind + 1] = getNextByRunge(x, derVals[ind], funForFireMethod, h, ind);
ind++;
}
}