Merge pull request #44 from akva2/fix_roundoff_issue_in_syntax_test

changed: run test for a x different than pi
This commit is contained in:
Bård Skaflestad 2013-10-16 03:44:08 -07:00
commit f4dfab1e37

View File

@ -208,7 +208,7 @@ BOOST_AUTO_TEST_CASE(Cosine)
const double atol = 1.0e-14;
const AdFW x = AdFW::variable(3.14159265358979323846264338327950288);
const AdFW x = AdFW::variable(3.14159265358979323846264338327950288/3.0);
const AdFW f = std::cos(x);
BOOST_CHECK_CLOSE(f.val(), std::cos(x.val()), atol);