title: how to set initial value(not manual input) of newton raphson method in python
body: <p>I would like find the roots of equation x2-x-6 using Newton Raphson method.</p>
  <p>how to take initial value x0 by coding.</p>
  <pre><code>tried with for loop
  for k in list(range(i-1, i)):
      print(&quot;x0&quot;, k)
      new_fun(x0)
      x0 = k + 0.5
      print(x0)
  </code></pre>
  <p>Where i and i-1 are boundaries</p>