Whitespace cleanup.
This commit is contained in:
parent
83c93a1e3b
commit
ee29f32ee8
@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE(table_operations)
|
||||
|
||||
// Check some evaluations.
|
||||
for (int i = 0; i < numvals; ++i) {
|
||||
BOOST_CHECK_EQUAL(t1(xv[i]), yv[i]);
|
||||
BOOST_CHECK_EQUAL(t1(xv[i]), yv[i]);
|
||||
}
|
||||
BOOST_CHECK_EQUAL(t1(2.6), 3.5);
|
||||
BOOST_CHECK_EQUAL(t1(4.0), 3.0);
|
||||
@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(table_operations)
|
||||
BOOST_CHECK_EQUAL(t1.domain().first, new_domain.first);
|
||||
BOOST_CHECK_EQUAL(t1.domain().second, new_domain.second);
|
||||
for (int i = 0; i < numvals; ++i) {
|
||||
BOOST_CHECK_EQUAL(t1((xv[i] + 1.0)*20.0 - 100.0), yv[i]);
|
||||
BOOST_CHECK_EQUAL(t1((xv[i] + 1.0)*20.0 - 100.0), yv[i]);
|
||||
}
|
||||
BOOST_CHECK_EQUAL(t1(0.0), 3.0);
|
||||
BOOST_CHECK(std::fabs(t1.derivative(0.0) + 1.0/20.0) < 1e-11);
|
||||
|
@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE(table_operations)
|
||||
|
||||
// Check some evaluations.
|
||||
for (int i = 0; i < numvals; ++i) {
|
||||
BOOST_CHECK_EQUAL(t1(xmin + i*xdelta), yv[i]);
|
||||
BOOST_CHECK_EQUAL(t1(xmin + i*xdelta), yv[i]);
|
||||
}
|
||||
BOOST_CHECK_EQUAL(t1(2.25), 0.0);
|
||||
BOOST_CHECK_EQUAL(t1(9.75), 3.0);
|
||||
@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE(table_operations)
|
||||
BOOST_CHECK_EQUAL(t1.domain().first, new_domain.first);
|
||||
BOOST_CHECK_EQUAL(t1.domain().second, new_domain.second);
|
||||
for (int i = 0; i < numvals; ++i) {
|
||||
BOOST_CHECK_EQUAL(t1(-100.0 + i*120.0/(double(numvals - 1))), yv[i]);
|
||||
BOOST_CHECK_EQUAL(t1(-100.0 + i*120.0/(double(numvals - 1))), yv[i]);
|
||||
}
|
||||
BOOST_CHECK_EQUAL(t1(-85.0), 0.0);
|
||||
BOOST_CHECK(std::fabs(t1.derivative(0.0) + 2.0/30.0) < 1e-14);
|
||||
|
Loading…
Reference in New Issue
Block a user