Closed Steven-Roberts closed 1 year ago
I like that and I think it is the simplest solution. There are some other equations that can have non-closed form exact solutions in terms of infinite series (not polynomial), I would have to look into which specifically. The trouble with those is that they will be defined for particular initial conditions, and not in general.
It would be nice to support exact solutions via a problem function
y = solveExactly(t)
which supports vectort
. I see 2 approachessolveExactly
function and only problems with exact solution implement itsolveExactly
aProblem
function that, by default, throws an errors that an exact solution is unavailable. Subclasses can override as needed.I favor the latter. The list of problems with exact solutions is