|
limes 3.1.0
Composable Calculus Expressions for C++20
|
Simpson's 1/3 rule with N subdivisions (N must be even). Achieves O(h^4) convergence. More...
#include <methods.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | simpson () noexcept=default |
| algorithms::integration_result< T > | operator() (std::function< T(T)> const &f, T a, T b) const |
Static Public Attributes | |
| static constexpr std::size_t | subdivisions = N |
Simpson's 1/3 rule with N subdivisions (N must be even). Achieves O(h^4) convergence.
Definition at line 172 of file methods.hpp.
| using limes::methods::simpson< N, T >::value_type = T |
Definition at line 176 of file methods.hpp.
|
constexprdefaultnoexcept |
|
inline |
Definition at line 181 of file methods.hpp.
|
staticconstexpr |
Definition at line 175 of file methods.hpp.