Trying to implement Newton's method to find roots in polynomials using Horner's method.
n=len(a)-1
print("k\t a\t x\t px")
for k in range (0, iterMax):
b=a[0]
c=b
for i in range (n-1,1):
b=a[i]+(b*x)
c=x*c+b
b=b*x+a[n]
if x in range of (-epsilon, epsilon)
print ("raiz encontrada")
on the line
if x in range of (epsilon, epsilon)
The compiler warns that "'float' object can not be interpreted as an integer"