double sqrt(double c)
{
if (c < 0) return error;
double err = 1e-15;
double t = c;
while (fabs(t*t - c) > err)
    t = (c/t + t) / 2.0;
return t;
}

On Sun, Sep 25, 2011 at 2:57 PM, teja bala <pawanjalsa.t...@gmail.com>wrote:

> @vikram
>
> the one which i posted(link) it was newton raphson method which is used to
> derive the square root of a number , there are many other methods if u r
> interested visit wikipedia ,
> and coming to this method write the code and xplain to him with an
> xample.......
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to