summaryrefslogtreecommitdiffstats
path: root/test/cosine_hyperbolic.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cosine_hyperbolic.c')
-rw-r--r--test/cosine_hyperbolic.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/cosine_hyperbolic.c b/test/cosine_hyperbolic.c
new file mode 100644
index 0000000..02cb98a
--- /dev/null
+++ b/test/cosine_hyperbolic.c
@@ -0,0 +1,13 @@
+#include <stddef.h>
+#include "ts.h"
+
+bool ts_test_cosine_hyperbolic( void )
+{
+ fp_t const x0[] = { 0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0 };
+ fp_t const e0[] = { 1.000000, 1.127626, 1.543081, 2.352410, 3.762196, 6.132289, 10.067662, 16.572825, 27.308233 };
+
+ fp_t const * const x[1] = { x0 };
+ fp_t const * const e[1] = { e0 };
+
+ return ts_test(ts_cosine_hyperbolic, ts_cosine_hyperbolic_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_cosine_hyperbolic_p);
+}