aboutsummaryrefslogtreecommitdiff
path: root/tests/hyperbolic/src.c
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-08 11:46:20 +0300
committermax99x <max99x@gmail.com>2011-07-08 11:46:20 +0300
commitb84bb001de07d4c056e4d6546ab3ccd27291bb3e (patch)
tree0c353b58f037f5fe65150978741ee1dd452a54d3 /tests/hyperbolic/src.c
parentb5b48bab8bddb23a80031897d97f8942e702787a (diff)
Added hyperbolic math functions;
Fixed trailing zero stripping in formatString().
Diffstat (limited to 'tests/hyperbolic/src.c')
-rw-r--r--tests/hyperbolic/src.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hyperbolic/src.c b/tests/hyperbolic/src.c
new file mode 100644
index 00000000..4644f2d3
--- /dev/null
+++ b/tests/hyperbolic/src.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <math.h>
+
+int main() {
+ double i;
+ for (i = -10; i < 10; i += 0.125) {
+ printf("i: %g\n", i);
+ printf("sinh: %g\n", sinh(i));
+ printf("cosh: %g\n", cosh(i));
+ printf("tanh: %g\n", tanh(i));
+ printf("asinh: %g\n", asinh(i));
+ printf("acosh: %g\n", acosh(i));
+ printf("atanh: %g\n", atanh(i));
+ printf("\n");
+ }
+ return 0;
+}