diff --git a/numerical_methods/midpoint_integral_method.cpp b/numerical_methods/midpoint_integral_method.cpp index 76c9ee97b..4f46f1381 100644 --- a/numerical_methods/midpoint_integral_method.cpp +++ b/numerical_methods/midpoint_integral_method.cpp @@ -19,15 +19,14 @@ * * @author [ggkogkou](https://github.com/ggkogkou) */ -#include /// for assert -#include /// for math functions +#include /// for assert +#include /// for math functions +#include #include /// for std::atof #include /// for std::function #include /// for IO operations #include /// for std::map container -#include "math.h" - /** * @namespace numerical_methods * @brief Numerical algorithms/methods @@ -159,8 +158,9 @@ int main(int argc, char** argv) { // Check if a 0 && "N has to be > 0"); - if (N < 4 || a != 1 || b != 3) + if (N < 4 || a != 1 || b != 3) { used_argv_parameters = true; + } std::cout << "You selected N=" << N << ", a=" << a << ", b=" << b << std::endl; } else {