Problem with a recursive function to find sqrt of a number
<p>Below is a simple program which computes sqrt of a number using Bisection. While executing this with a call like sqrtr(4,1,4) in goes into an endless recursion . I am unable to figure out why this is happening. Below is the function :</p>

<pre><code>double sqrtr(double N , double Low ,double High  )
{

     double value = 0.00;

     double mid = (Low + High + 1)/2;

    if(Low == High)
     {
        value =  High;

     }

     else if (N &lt; mid * mid )
     {
        value = sqrtr(N,Low,mid-1) ;


     }
     else if(N &gt;= mid * mid)
     {
         value = sqrtr(N,mid,High) ;

     }

     return value;

}
</code></pre>
