Skip to content

num::ode::debug::verify_symplectic_2form

Defined in header <ode/debug.hpp>

template <class Step>
void verify_symplectic_2form(
    Step &&step, const vec<real> &q0, const vec<real> &p0, real h, real tol = 1e-6,
    std::source_location loc = std::source_location::current());

Check that one step preserves the symplectic form \(\omega = dq \wedge dp\). step(q, p, h, q1, p1) takes one step.