summaryrefslogtreecommitdiff
path: root/libm/float/j0tst.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-10 00:40:28 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-10 00:40:28 +0000
commit1077fa4d772832f77a677ce7fb7c2d513b959e3f (patch)
tree579bee13fb0b58d2800206366ec2caecbb15f3fc /libm/float/j0tst.c
parent22358dd7ce7bb49792204b698f01a6f69b9c8e08 (diff)
uClibc now has a math library. muahahahaha!
-Erik
Diffstat (limited to 'libm/float/j0tst.c')
-rw-r--r--libm/float/j0tst.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/libm/float/j0tst.c b/libm/float/j0tst.c
new file mode 100644
index 000000000..e5a5607d7
--- /dev/null
+++ b/libm/float/j0tst.c
@@ -0,0 +1,43 @@
+float z[20] = {
+2.4048254489898681641,
+5.5200781822204589844,
+8.6537275314331054687,
+11.791533470153808594,
+14.930917739868164062,
+18.071063995361328125,
+21.211637496948242188,
+24.352472305297851563,
+27.493478775024414062,
+30.634607315063476562,
+33.775821685791015625,
+36.9170989990234375,
+40.0584259033203125,
+43.19979095458984375,
+46.3411865234375,
+49.482608795166015625,
+52.624050140380859375,
+55.76551055908203125,
+58.906982421875,
+62.04846954345703125,
+};
+
+/* #if ANSIC */
+#if __STDC__
+float j0f(float);
+#else
+float j0f();
+#endif
+
+int main()
+{
+float y;
+int i;
+
+for (i = 0; i< 20; i++)
+ {
+ y = j0f(z[i]);
+ printf("%.9e\n", y);
+ }
+exit(0);
+}
+