[algogeeks] Re: Find SquareRoot of a number

2009-02-12 Thread praba garan
program to find the square root of a number without using sqrt is ::: #include iostream.h #include math.h int main() { const float tol = 0.05; // relative error tolerance float value; float oldval, newval; cout Square root of a number endl endl; cout Enter a positive

[algogeeks] Re: Find SquareRoot of a number

2009-02-12 Thread Ramaswamy R
Bisection and Newton raphson method are a couple of simple way to do it.You can check up for these on any book on numerical methods. On Mon, Feb 9, 2009 at 9:42 AM, rakesh sathu rakesh2...@gmail.com wrote: Can anybody help me for writing code in 'c'-language to find the square root of a

[algogeeks] Re: Find SquareRoot of a number

2009-02-09 Thread Ajinkya Kale
We wont suggest you to use sqrt() function but we will suggest that you do your homework on your own...else atleast post what problem are you facing in implementing the same. Here is a pointer for your problem. You can use any of the approximation methods mentioned here :