linear_ode_to_matrix(eqs, funcs, t, order) writes the system of linear
ODEs eqs of the given order as
A_n X^(n) = A_(n-1) X^(n-1) + ... + A_0 X + b, as SymPy's
linear_ode_to_matrix().
Examples
t <- Symbol("t"); f <- Function("f"); g <- Function("g")
linear_ode_to_matrix(list(Eq(Derivative(f(t), t), g(t)), Eq(Derivative(g(t), t), f(t))),
list(f(t), g(t)), t, 1)
#> ([Matrix([[1, 0], [0, 1]]), Matrix([[0, 1], [1, 0]])], Matrix([[0], [0]]))