bundles / scipy 1.17.1 / scipy / integrate / _ivp / common / OdeSolution
class
scipy.integrate._ivp.common:OdeSolution
Signature
class OdeSolution ( ts , interpolants , alt_segment = False ) Members
Summary
Continuous ODE solution.
Extended Summary
It is organized as a collection of DenseOutput objects which represent local interpolants. It provides an algorithm to select a right interpolant for each given point.
The interpolants cover the range between t_min and t_max (see Attributes below). Evaluation outside this interval is not forbidden, but the accuracy is not guaranteed.
When evaluating at a breakpoint (one of the values in ts) a segment with the lower index is selected.
Parameters
ts: array_like, shape (n_segments + 1,)Time instants between which local interpolants are defined. Must be strictly increasing or decreasing (zero segment with two points is also allowed).
interpolants: list of DenseOutput with n_segments elementsLocal interpolants. An i-th interpolant is assumed to be defined between
ts[i]andts[i + 1].alt_segment: booleanRequests the alternative interpolant segment selection scheme. At each solver integration point, two interpolant segments are available. The default (False) and alternative (True) behaviours select the segment for which the requested time corresponded to
tandt_old, respectively. This functionality is only relevant for testing the interpolants' accuracy: different integrators use different construction strategies.
Attributes
t_min, t_max: floatTime range of the interpolation.
Aliases
-
scipy.integrate.OdeSolution