function value=logtaylor(x, delta)
s=0;
nexterm=x;
N=10^4;
for i=2:N
     s=s+nexterm;
nexterm = -x*nexterm*(i-1)/i;
     if abs(nexterm) <= delta
        break
     end
end
i
value = s;
