1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 float sqrt( float x ) { /* TODO */ };
12 long double sqrt( long double x ) { /* TODO */ };
14 // ----------------------------------------------------------------------------
17 double sqrt( double x ) { /* TODO */ };
26 // (15 DP) HOW GET MORE?
27 while ( ( fabs( i - ( x / i ) ) / i ) > 0.000000000000001)
29 i = ( i + ( x / i ) ) / 2;
35 float sqrtf( float x ) { /* TODO */ };
36 long double sqrtl( long double x ) { /* TODO */ };