55 inline double romberg(
const double low,
const double high,
const uint8 n,
const std::function<
double(
double)>& f)
63 for (
uint8 step = 1; step <
n; step++)
72 const double deltaX = (2. *
static_cast<double>(
tzStep - 1)) *
h;
55 inline double romberg(
const double low,
const double high,
const uint8 n,
const std::function<
double(
double)>& f) {
…}
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition gauss_legendre.hpp:43
double romberg(const double low, const double high, const uint8 n, const std::function< double(double)> &f)
Definition romberg.hpp:55
double trapazoidal(const double low, const double high, const uint32 n, const std::function< double(double)> &f) noexcept
Definition trapazoidal.hpp:51
dtype power(dtype inValue, uint8 inPower) noexcept
Definition Utils/power.hpp:46
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::uint8_t uint8
Definition Types.hpp:42
std::uint32_t uint32
Definition Types.hpp:40