mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 10:35:34 +08:00
Update numerical_methods/midpoint_integral_method.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -39,7 +39,8 @@ namespace numerical_methods {
|
|||||||
namespace midpoint_rule {
|
namespace midpoint_rule {
|
||||||
/**
|
/**
|
||||||
* @fn double midpoint(const int N, const double h, const double a, const
|
* @fn double midpoint(const int N, const double h, const double a, const
|
||||||
* std::function<double (double)>& func) \brief Implement midpoint method
|
* std::function<double (double)>& func)
|
||||||
|
* \brief Main function for implementing the Midpoint Integral Method implementation
|
||||||
* @param N is the number of intervals
|
* @param N is the number of intervals
|
||||||
* @param h is the step
|
* @param h is the step
|
||||||
* @param a is x0
|
* @param a is x0
|
||||||
|
|||||||
Reference in New Issue
Block a user