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
b1e3a81eab
commit
a5a50f89a9
@ -35,7 +35,7 @@ namespace numerical_methods {
|
|||||||
* @brief Functions for the [Midpoint Integral](https://en.wikipedia.org/wiki/Midpoint_method) method implementation
|
* @brief Functions for the [Midpoint Integral](https://en.wikipedia.org/wiki/Midpoint_method) method implementation
|
||||||
*/
|
*/
|
||||||
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 Implement midpoint method
|
||||||
* @param N is the number of intervals
|
* @param N is the number of intervals
|
||||||
|
Loading…
Reference in New Issue
Block a user