#include <iterator>
#include <type_traits>
Go to the source code of this file.
|
template<class UnaryOp , class InputIt > |
std::invoke_result< UnaryOp, typename std::iterator_traits< InputIt >::value_type >::type | math::quadrature::simpson (UnaryOp f, InputIt first, InputIt last) |
| Approximates the definite integral of a function using Simpson's 1/3 rule. More...
|
|
template<class UnaryOp , class InputIt > |
std::invoke_result< UnaryOp, typename std::iterator_traits< InputIt >::value_type >::type | math::quadrature::trapezoid (UnaryOp f, InputIt first, InputIt last) |
| Approximates the definite integral of a function using the trapezoidal rule. More...
|
|