X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fsqrt.c;fp=functions%2Fmath%2Fsqrt.c;h=0000000000000000000000000000000000000000;hb=a1f747e81dad0bb9897cb11c652403bb7bbf084c;hp=802f4ce20e7f8a9990f5fc2aecb5bd0316c73c4b;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/functions/math/sqrt.c b/functions/math/sqrt.c deleted file mode 100644 index 802f4ce..0000000 --- a/functions/math/sqrt.c +++ /dev/null @@ -1,27 +0,0 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * --------------------------------------------------------------------------*/ - -double sqrt( double x ) { /* TODO */ }; - -/* Therx code -{ - double i = x / 2; - if ( x < 0 ) - { - return 0; - } - // (15 DP) HOW GET MORE? - while ( ( fabs( i - ( x / i ) ) / i ) > 0.000000000000001) - { - i = ( i + ( x / i ) ) / 2; - } - return i; -} -*/ - -float sqrtf( float x ) { /* TODO */ }; -long double sqrtl( long double x ) { /* TODO */ };