def methode_1(a, b, n): for i in range(n): m = (a + b) / 2 if f(a) * f(m) < 0: b = m else: a = m return [a, b]
To embed this project on your website, copy the following code and paste it into your website's HTML: