summaryrefslogtreecommitdiffstats
path: root/test/cosine_hyperbolic.c
blob: 02cb98a1f8bea74ba23c8665e5f8eeb8ad1ef25d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}