AnalyticalProblem(f, u0, tspan, p) is a problem whose solution is known:
f(u0, p, t) is the state at t. solve(prob, dt = , saveat = )
evaluates it on the requested times (every dt, saveat, or the two
ends of tspan) and returns an ODESolution() interpolated linearly.
Usage
AnalyticalProblem(f, u0, tspan, p = numeric(), ...)Arguments
- f
Solution
f(u0, p, t).- u0, tspan, p
Initial state, time span and parameters.
- ...
Options passed to
solve().