9 #include "utils/macros.hpp"
11 #include <boost/test/unit_test.hpp>
12 #include <boost/utility/binary.hpp>
16 template<
typename Scalar>
20 inline float sinCosTolerance<float>()
28 inline double sinCosTolerance<double>()
34 inline long double sinCosTolerance<long double>()
40 template<
typename Scalar>
43 for (
int k = 0; k <
n; ++k)
45 Scalar sin_value, cos_value;
51 BOOST_CHECK_CLOSE_FRACTION(sin_value, sin_value_ref, sinCosTolerance<Scalar>());
52 BOOST_CHECK_CLOSE_FRACTION(cos_value, cos_value_ref, sinCosTolerance<Scalar>());
56 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
66 testSINCOS<double>(
n);
67 testSINCOS<long double>(
n);
70 BOOST_AUTO_TEST_SUITE_END()