from math import*
n=input ("Введите число n ")
x=input ("Введите x, |x|<1 ")
eps = [0.00001,0.0001,0.001,0.01,0.1,1]
def ln(x,n,eps):
res = 0
while (n+1):
elem =(pow(-1,n)*pow(x,(n+1)))/(n+1)
if abs(elem) > eps:
res +=elem
n -=1
return res
for i in range(0,6):
print "ln(x+1) при n = "+str(n)+" , x = "+str(x)+" , eps ="+str(eps[i])
print ln(x,n,eps[i])