Skip to content
Snippets Groups Projects
Commit c5a0238d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

pre-commit run -a

parent b5dfbe9e
No related branches found
No related tags found
No related merge requests found
Pipeline #45153 passed
...@@ -49,7 +49,7 @@ struct Bern { ...@@ -49,7 +49,7 @@ struct Bern {
if (!(u >= 0. && u <= 1.)) { if (!(u >= 0. && u <= 1.)) {
throw std::invalid_argument("u needs to be betwen 0 and 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 /// \brief Check if actual Bernstein polynomial and other are approximately
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment