num::euler¶
Defined in header <ode/ode.hpp>
template <typename RHS = ode_rhs_fn, typename State = vec<real>>
requires vector_space<State> && std::invocable<RHS &, real, const State &, State &>
basic_euler_steps<RHS, State> euler(RHS f, State y0, ode_params p = {});
Return the steps of the forward Euler method, computed as they are read: \(y_{n+1} = y_n + h f(t_n, y_n)\).