uses
SysUtils, math;
var
i,sum,eps:Real;
n:Integer;
begin
sum:=0;
eps:=0.0001;
n:=1;
i:=0;
while eps>i do
begin
i:=1/(2*n+1)*power(-1, n);
sum:=sum+i;
inc(n);
end;
Writeln(sum);
readln;
end.
IfThen(Odd(n), -1, 1)
x2 := Sqr(x);
...
yNew := -yOld * x2 / ((n - 1) * n);