![]() |
NumCpp
2.16.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Data Structures | |
| class | LegendrePolynomial |
Functions | |
| double | gauss_legendre (const double low, const double high, const uint32 n, const std::function< double(double)> &f) |
| double | romberg (const double low, const double high, const uint8 n, const std::function< double(double)> &f) |
| double | simpson (const double low, const double high, const uint32 n, const std::function< double(double)> &f) noexcept |
| double | trapazoidal (const double low, const double high, const uint32 n, const std::function< double(double)> &f) noexcept |
|
inline |
Performs Gauss-Legendre integration of the input function
| low | the lower bound of the integration |
| high | the upper bound of the integration |
| n | the number of iterations to perform |
| f | the function to integrate over |
|
inline |
Performs Newton-Cotes Romberg integration of the input function
| low | the lower bound of the integration |
| high | the upper bound of the integration |
| n | the number of iterations |
| f | the function to integrate over |
|
inlinenoexcept |
Performs Newton-Cotes Simpson integration of the input function
| low | the lower bound of the integration |
| high | the upper bound of the integration |
| n | the number of subdivisions |
| f | the function to integrate over |
|
inlinenoexcept |
Performs Newton-Cotes trapazoidal integration of the input function
| low | the lower bound of the integration |
| high | the upper bound of the integration |
| n | the number of subdivisions |
| f | the function to integrate over |