def nombre_derive_approche(a):
    h = 1e-10
    return (f(a + h) - f(a)) / h
    
def methode_Newton(n):
    x = 1
    for i in range(n):
        x = x - f(x) / nombre_derive_approche(x)
    return x

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: