Update numerical_methods/midpoint_integral_method.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
ggkogkou 2021-10-27 23:08:28 +03:00 committed by GitHub
parent d4fe67e857
commit 7f16cc1413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,12 @@ static void test(int N, double h, double a, double b,
<< "] is equal to: " << result_l << std::endl;
}
/** main function */
/**
* @brief Main function
* @param argc commandline argument count (ignored)
* @param argv commandline array of arguments (ignored)
* @returns 0 on exit
*/
int main(int argc, char** argv) {
int N = 16; /// Number of intervals to divide the integration interval.
/// MUST BE EVEN