27 auto const wide_order = std::count(state.begin(), state.end(),
'\'');
28 assert(wide_order >= 0 && wide_order <= std::numeric_limits<int>::max());
29 order =
static_cast<int>(wide_order);
33 if (order == 0 || state.empty()) {
34 throw std::runtime_error(
"Invalid equation, no prime on rhs? " + equation);
39 std::string state, rhs;
52 std::istringstream in(rhs);
55 DiffeqParser parser(scanner, eq_context);
65 std::string state, rhs;
68 std::string method =
"cnexp";