Skip to content

Commit

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

real x_t, x_new;

TH_DEBUG("Computing n_half");
TH_DEBUG((b - a) / tol);

const long int n_half = th::floor(th::log2((b - a) / tol));
const long double log2n = th::log2((b - a) / tol);

TH_DEBUG(log2n);

const long int n_half = th::floor(log2n);
const long int n_max = n_half + n0;

TH_DEBUG(n_half);
Expand Down

0 comments on commit b11e341

Please sign in to comment.