mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +08:00
Update numerical_methods/midpoint_integral_method.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user