diff options
Diffstat (limited to 'gnuradio-runtime/lib/math')
-rw-r--r-- | gnuradio-runtime/lib/math/qa_sincos.cc | 12 | ||||
-rw-r--r-- | gnuradio-runtime/lib/math/qa_sincos.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gnuradio-runtime/lib/math/qa_sincos.cc b/gnuradio-runtime/lib/math/qa_sincos.cc index 7def8a9bb8..a6234d19d6 100644 --- a/gnuradio-runtime/lib/math/qa_sincos.cc +++ b/gnuradio-runtime/lib/math/qa_sincos.cc @@ -35,14 +35,14 @@ qa_sincos::t1() static const unsigned int N = 1000; double c_sin, c_cos; double gr_sin, gr_cos; - + for(unsigned i = 0; i < N; i++) { double x = i/100.0; c_sin = sin(x); c_cos = cos(x); - + gr::sincos(x, &gr_sin, &gr_cos); - + CPPUNIT_ASSERT_DOUBLES_EQUAL(c_sin, gr_sin, 0.0001); CPPUNIT_ASSERT_DOUBLES_EQUAL(c_cos, gr_cos, 0.0001); } @@ -54,14 +54,14 @@ qa_sincos::t2() static const unsigned int N = 1000; float c_sin, c_cos; float gr_sin, gr_cos; - + for(unsigned i = 0; i < N; i++) { float x = i/100.0; c_sin = sinf(x); c_cos = cosf(x); - + gr::sincosf(x, &gr_sin, &gr_cos); - + CPPUNIT_ASSERT_DOUBLES_EQUAL(c_sin, gr_sin, 0.0001); CPPUNIT_ASSERT_DOUBLES_EQUAL(c_cos, gr_cos, 0.0001); } diff --git a/gnuradio-runtime/lib/math/qa_sincos.h b/gnuradio-runtime/lib/math/qa_sincos.h index c54b75f97f..9fec5958c0 100644 --- a/gnuradio-runtime/lib/math/qa_sincos.h +++ b/gnuradio-runtime/lib/math/qa_sincos.h @@ -32,7 +32,7 @@ class qa_sincos : public CppUnit::TestCase CPPUNIT_TEST(t1); CPPUNIT_TEST(t2); CPPUNIT_TEST_SUITE_END(); - + private: void t1(); void t2(); |