X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fsqrt.c;fp=functions%2Fmath%2Fsqrt.c;h=0000000000000000000000000000000000000000;hb=94cec7268060142c361c882c0a54d4b0052a591c;hp=802f4ce20e7f8a9990f5fc2aecb5bd0316c73c4b;hpb=c8f799d852e3698468a78954d82588e841cc0b70;p=pdclib.old 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 */ };