def f(x): y= return y def Secante(a,b,p): X= n=0 while abs(f(X))>10**(-p): X= n=n+1 return n,X