Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 5, 2024
1 parent ef610a9 commit 687526a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ndcurves/bernstein.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct Bern {
if (!(u >= 0. && u <= 1.)) {
throw std::invalid_argument("u needs to be betwen 0 and 1.");
}
return bin_m_i_ * (pow(u, i_)) * pow((1 - u), m_minus_i);
return bin_m_i_ * (pow(u, i_))*pow((1 - u), m_minus_i);
}

/// \brief Check if actual Bernstein polynomial and other are approximately
Expand Down

0 comments on commit 687526a

Please sign in to comment.