"x0 + h; x0 + 2h... x0+nh", cili krok je stanoveny 1
... chyba, krok neni stanoveny.
Jestli muzu krok volit a vim, ze v 1 to neni definovane, tak zvolim 2. A kdyz si to spocitam pro x=0, ze vyjde y=1, pak by to slo.
h = 2
x0 = 0; x1 = x0 + h = 2; xn = [0, 2, 4, 6, ...]
y0 = 1
y1 = y0 + h * (x0/y0 * (1+y0*y0) / (1-x0*x0)) = 1 + 2 * (0 *...) = 1
y2 = y1 + h * (x1/y1 * (1+y1*y1) / (1-x1*x1)) = 1 + 2 * (2/1 * (1+1)/(1-4)) = 1 - 8/3 = -5/3 = -1.666
y3 = y2 + h * (x2/y2 * (1+y2*y2) / (1-x2*x2)) = 1 + 2 * (2/(-5/3)) * (1+(-5/3*-5/3))/(1-16)) = 1 + 10/3 * (34/9) /15 = 1 + 68/81 = 1+0.84 = 1.84
y4 = y3 + h * (x3/y3 * (1+y3*y3) / (1-x3*x3)) = 1 + 2 * (4/1.84) * (1+(1.84*1.84))/(1-36)) = 1 + 4.35 * -30.62 = - 129.1
Jestli to nemam spatne, tak to asi tak bude preskakovat az do nekonecna.