Skip to content

Commit

Permalink
Troubleshoot MacOS test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaisgro committed Dec 19, 2024
1 parent 4ea661f commit ff13f4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/optimization/roots.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ namespace theoretica {

real x_t, x_new;

const long int n_half = floor(log2((b - a) / tol));
TH_DEBUG("Computing n_half");

const long int n_half = th::floor(th::log2((b - a) / tol));
const long int n_max = n_half + n0;

TH_DEBUG(n_half);
Expand Down
10 changes: 5 additions & 5 deletions test/prec/test_optimization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ int main(int argc, char const *argv[]) {
0.0
);

// prec::equals(
// "root_itp (1)",
// f1(root_itp(f1<real>, 0.6, 0.7, 1E-12)),
// 0.0
// );
prec::equals(
"root_itp (1)",
f1(root_itp(f1<real>, 0.6, 0.7, 1E-12)),
0.0
);

prec::equals(
"root_newton (1)",
Expand Down

0 comments on commit ff13f4e

Please sign in to comment.