mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update numerical_methods/midpoint_integral_method.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
d4fe67e857
commit
7f16cc1413
@ -133,7 +133,12 @@ static void test(int N, double h, double a, double b,
|
|||||||
<< "] is equal to: " << result_l << std::endl;
|
<< "] 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 main(int argc, char** argv) {
|
||||||
int N = 16; /// Number of intervals to divide the integration interval.
|
int N = 16; /// Number of intervals to divide the integration interval.
|
||||||
/// MUST BE EVEN
|
/// MUST BE EVEN
|
||||||
|
Loading…
Reference in New Issue
Block a user