I would like find the roots of equation x2-x-6 using Newton Raphson method.
how to take initial value x0 by coding.
tried with for loop
for k in list(range(i-1, i)):
print("x0", k)
new_fun(x0)
x0 = k + 0.5
print(x0)
Where i and i-1 are boundaries