num::ode::debug::verify_order_of_accuracy¶
Defined in header <ode/debug.hpp>
template <class Advance>
void verify_order_of_accuracy(
Advance &&advance, const vec<real> &y0, real t0, real t1, real claimed_order,
real slack = 0.4, std::source_location loc = std::source_location::current());
Measure the order of accuracy by halving the step: \(p \approx \log_2(e_h / e_{h/2})\). advance(t0, t1, h, y0, y1) integrates one interval.