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 cbrt( float x ) { /* TODO */ };
12 long double cbrt( long double x ) { /* TODO */ };
14 // ----------------------------------------------------------------------------
17 double cbrt( double x ) { /* TODO */ };
22 // (15 DP) HOW GET MORE?
23 while ( ( fabs( i - ( x / i / i ) ) / i ) > 0.00000000000001 )
25 i = ( i + ( x / i / i ) + i ) / 3;
31 float cbrtf( float x ) { /* TODO */ };
32 long double cbrtl( long double x ) { /* TODO */ };