def newton2(fonction,derivee,x0,e): x = x0 while abs(fonction(x))>e: d=derivee(x) x = x-fonction(x)/d return x