Antkeeper  0.0.1
Namespaces | Functions
quadrature.hpp File Reference
#include <iterator>
#include <type_traits>

Go to the source code of this file.

Namespaces

 math
 Mathematical functions and data types.
 
 math::quadrature
 Numerical integration functions.
 

Functions

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...