Commit 2ddfaaba authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

int_part.cc: add constexpr

parent d544fdab
......@@ -86,7 +86,7 @@ double q_rec_memo(int n, int k)
double log_q_approx_big(size_t n, size_t k)
{
double C = M_PI * sqrt(2/3.);
constexpr double C = M_PI * sqrt(2/3.);
double S = C * sqrt(n) - log(4 * sqrt(3) * n);
if (k < n)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment