]> pd.if.org Git - pdclib/blobdiff - functions/math/exp.c
Introducing personalities. Removing C++ function decs / defs.
[pdclib] / functions / math / exp.c
index 19d35a58c4001d6153b759b107f5513fe135530e..7bf8ce38c4231d580bc2756bc839d2ee5d8a2af6 100644 (file)
@@ -5,32 +5,23 @@
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
 
-// ----------------------------------------------------------------------------
-// C++
-
-float exp( float x ) { /* TODO */ };
-long double exp( long double x ) { /* TODO */ };
-
-float exp2( float x ) { /* TODO */ };
-long double exp2( long double x ) { /* TODO */ };
-
-float expm1( float x ) { /* TODO */ };
-long double expm1( long double x ) { /* TODO */ };
-
-float frexp( float x, int * exponent ) { /* TODO */ };
-long double frexp( long double x, int * exponent ) { /* TODO */ };
-
-float ldexp( float x, int exponent ) { /* TODO */ };
-long double ldexp( long double x, int exponent ) { /* TODO */ };
-
-// ----------------------------------------------------------------------------
-// Standard C
-
 double exp( double x ) { /* TODO */ };
 float expf( float x ) { /* TODO */ };
 long double expl( long double x ) { /* TODO */ };
 
 double exp2( double x ) { /* TODO */ };
+
+/* Therx code
+{
+    double value = 1;
+    for( int i = 1; i <= x; i++ )
+    {
+        value *= 2;
+    }
+    return value;
+}
+*/
+
 float exp2f( float x ) { /* TODO */ };
 long double exp2l( long double x ) { /* TODO */ };
 
@@ -44,4 +35,4 @@ long double frexpl( long double x, int * exp ) { /* TODO */ };
 
 double ldexp( double x, int exp ) { /* TODO */ };
 float ldexpf( float x, int exp ) { /* TODO */ };
-long double ldexpl( long double x, int exp ) { /* TODO */ };
\ No newline at end of file
+long double ldexpl( long double x, int exp ) { /* TODO */ };