Skip to content

Commit

Permalink
Reduce iter-tol for ordinary fp-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 28, 2024
1 parent ff91276 commit c9f3881
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ struct gamma_p_inverse_func
f2 = -f2;
}

const T rela_diff_or_diff { (fabs(1 - p / f) <= 4 * tools::epsilon<T>()) ? T { 0 } : static_cast<T>(f - p) };
const T rela_diff_or_diff { (fabs(1 - p / f) < tools::epsilon<T>()) ? T { 0 } : static_cast<T>(f - p) };

return boost::math::make_tuple(rela_diff_or_diff, f1, f2);
}
Expand Down

0 comments on commit c9f3881

Please sign in to comment.