2
Trying to implement Newton’s method for finding 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)
Compiler warns that "float' Object cannot be Interpreted as an integer"
This syntax is wrong. If you want to check if the value is in this range, I advise you to do
if -epsilon <= x <= epsilon.– Woss