checkodesol(ode, sol, func) substitutes the solution sol into the
ODE ode and returns (TRUE, 0) when it is a solution, or (FALSE, residual), as SymPy's checkodesol(). A list of solutions gives a list
of results, and a list of equations is checked as a system with
checksysodesol().
Examples
x <- Symbol("x"); f <- Function("f")
checkodesol(Derivative(f(x), x) - f(x), Eq(f(x), exp(x)), f(x))
#> (True, 0)