15 QX_PUSH_SUPPRESS_ALL_WARNINGS();
16 #include <glm/glm.hpp>
17 QX_POP_SUPPRESS_WARNINGS();
31 template<
class function_2d_t>
43 template<
class function_2d_t>
57 template<
class function_2d_t>
59 const function_2d_t& func,
62 double fMaxSliceError,
63 size_t nIntervalsPer1 = 10,
64 size_t nMaxRecursion = 300);
78 template<
class function_2d_t>
80 const function_2d_t& funcIsInside,
83 size_t nPointsPerOneSquare = 1000);
double integrate_trapezoid_rule(const function_2d_t &func, double x0, double x1, size_t nIntervalsPer1=10)
Integrate using trapezoid rule.
double integrate_rectangle_rule(const function_2d_t &func, double x0, double x1, size_t nIntervalsPer1=10)
Integrate using rectangle rule.
double integrate_adaptive_midpoint(const function_2d_t &func, double x0, double x1, double fMaxSliceError, size_t nIntervalsPer1=10, size_t nMaxRecursion=300)
Integrate using adaptive midpoint.
double integrate_monte_carlo(const function_2d_t &funcIsInside, glm::dvec2 pos0, glm::dvec2 pos1, size_t nPointsPerOneSquare=1000)
Integrate using probabilistic algorithm Monte Carlo.