def secante(f,x0,epsilon,h): x=x0 while abs(f(x))>epsilon : derivee=(f(x+h)-f(x))/h x=x-f(x)/derivee return x