summaryrefslogtreecommitdiff
path: root/libm/float/powtst.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-22 14:04:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-22 14:04:29 +0000
commit7ce331c01ce6eb7b3f5c715a38a24359da9c6ee2 (patch)
tree3a7e8476e868ae15f4da1b7ce26b2db6f434468c /libm/float/powtst.c
parentc117dd5fb183afb1a4790a6f6110d88704be6bf8 (diff)
Totally rework the math library, this time based on the MacOs X
math library (which is itself based on the math lib from FreeBSD). -Erik
Diffstat (limited to 'libm/float/powtst.c')
-rw-r--r--libm/float/powtst.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/libm/float/powtst.c b/libm/float/powtst.c
deleted file mode 100644
index ff4845de2..000000000
--- a/libm/float/powtst.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdio.h>
-#include <math.h>
-extern float MAXNUMF, MAXLOGF, MINLOGF;
-
-int
-main()
-{
-float exp1, minnum, x, y, z, e;
-exp1 = expf(1.0F);
-
-minnum = powif(2.0F,-149);
-
-x = exp1;
-y = MINLOGF + logf(0.501);
-/*y = MINLOGF - 0.405;*/
-z = powf(x,y);
-e = (z - minnum) / minnum;
-printf("%.16e %.16e\n", z, e);
-
-x = exp1;
-y = MAXLOGF;
-z = powf(x,y);
-e = (z - MAXNUMF) / MAXNUMF;
-printf("%.16e %.16e\n", z, e);
-
-x = MAXNUMF;
-y = 1.0F/MAXLOGF;
-z = powf(x,y);
-e = (z - exp1) / exp1;
-printf("%.16e %.16e\n", z, e);
-
-
-x = exp1;
-y = MINLOGF;
-z = powf(x,y);
-e = (z - minnum) / minnum;
-printf("%.16e %.16e\n", z, e);
-
-
-exit(0);
-}