scipy 1.8.0 Pypi GitHub Homepage
Other Docs
Returns
collocation_fun(fun, y, p, x, h)

This function lies in the core of the method. The solution is sought as a cubic C1 continuous spline with derivatives matching the ODE rhs at given nodes :None:None:`x`. Collocation conditions are formed from the equality of the spline derivatives and rhs of the ODE system in the middle points between nodes.

Such method is classified to Lobbato IIIA family in ODE literature. Refer to for the formula and some discussion.

Returns

col_res : ndarray, shape (n, m - 1)

Collocation residuals at the middle points of the mesh intervals.

y_middle : ndarray, shape (n, m - 1)

Values of the cubic spline evaluated at the middle points of the mesh intervals.

f : ndarray, shape (n, m)

RHS of the ODE system evaluated at the mesh nodes.

f_middle : ndarray, shape (n, m - 1)

RHS of the ODE system evaluated at the middle points of the mesh intervals (and using :None:None:`y_middle`).

Evaluate collocation residuals.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/integrate/_bvp.py#276
type: <class 'function'>
Commit: