]> pd.if.org Git - pdclib/blob - functions/math/cbrt.c
Re-import from Subversion.
[pdclib] / functions / math / cbrt.c
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * --------------------------------------------------------------------------*/
7
8 double cbrt( double x ) { /* TODO */ };
9
10 /* Therx code
11 {
12     double i = x / 4;
13     // (15 DP) HOW GET MORE?
14     while ( ( fabs( i - ( x / i / i ) ) / i ) > 0.00000000000001 )
15     {
16         i = ( i + ( x / i / i ) + i ) / 3;
17     }
18     return i;
19 }
20 */
21
22 float cbrtf( float x ) { /* TODO */ };
23 long double cbrtl( long double x ) { /* TODO */ };