Professional Documents
Culture Documents
Método de Muller, Ejemplo 4
Método de Muller, Ejemplo 4
MAX_ITERATIONS = 10000;
# Taking f(x) = x ^ 3 - 7x + 7
return (1 * pow(x, 3) + 2 * x * x +
-7 * x - 7);
res = 0;
i = 0;
while (True):
1
# Taking the root which is
# closer to x2
if (x >= y):
res = x + c;
else:
res = y + c;
# Driver Code
a = 0;
b = 1;
c = 2;
Muller(a, b, c);
[ ]: