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:06:22 +03:00
committed by GitHub
parent f9cdf59a62
commit ab4c1242dd

View File

@@ -1,6 +1,6 @@
/*!
* @file
* \brief A numerical method for easy approximation of integrals
* \brief A numerical method for easy [approximation of integrals](https://en.wikipedia.org/wiki/Midpoint_method)
* \details The idea is to split the interval into N of intervals and use as interpolation points the xi
* for which it applies that xi = x0 + i*h, where h is a step defined as h = (b-a)/N where a and b are the
* first and last points of the interval of the integration [a, b].