mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 23:30:37 +01:00
[poincare] Fix compilation: change std::abs to std::fabs when the
argument isn't complex
This commit is contained in:
@@ -10,7 +10,7 @@ void assert_hypergeometric_is(double a, double b, double c, double z, double res
|
||||
double r = 0.0;
|
||||
const double precision = FLT_EPSILON;
|
||||
quiz_assert(hypergeometricFunction(a, b, c, z, precision, 1000, &r));
|
||||
quiz_assert(std::abs(r - result)/result <= 100 * precision); // Multiply by 100 because precision is too strict
|
||||
quiz_assert(std::fabs(r - result)/result <= 100 * precision); // Multiply by 100 because precision is too strict
|
||||
}
|
||||
|
||||
QUIZ_CASE(hypergeometric_function) {
|
||||
|
||||
Reference in New Issue
Block a user