removed scaling during assert checks

This commit is contained in:
Krishna Vedala 2020-06-21 23:08:53 -04:00
parent 957fe5c6ce
commit ef957bae98
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -152,7 +152,7 @@ void test1() {
std::cout << minima << "...";
assert(std::abs(minima - 2) < EPSILON * 2);
assert(std::abs(minima - 2) < EPSILON);
std::cout << "passed\n";
}
@ -175,7 +175,7 @@ void test2() {
std::cout << minima << " (" << M_E << ")...";
assert(std::abs(minima - M_E) < EPSILON * 2);
assert(std::abs(minima - M_E) < EPSILON);
std::cout << "passed\n";
}
@ -196,7 +196,7 @@ void test3() {
std::cout << minima << " (" << M_PI << ")...";
assert(std::abs(minima - M_PI) < EPSILON * 2);
assert(std::abs(minima - M_PI) < EPSILON);
std::cout << "passed\n";
}