scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
derivatives(self, x, der=None)

Produce an array of all derivative values at the point x.

Parameters

x : array_like

Point or points at which to evaluate the derivatives

der : int or None, optional

How many derivatives to extract; None for all potentially nonzero derivatives (that is a number equal to the number of points). This number includes the function value as 0th derivative.

Returns

d : ndarray

Array with derivatives; d[j] contains the jth derivative. Shape of d[j] is determined by replacing the interpolation axis in the original array with the shape of x.

Evaluate many derivatives of the polynomial at the point x

Examples

>>> from scipy.interpolate import KroghInterpolator
... KroghInterpolator([0,0,0],[1,2,3]).derivatives(0) array([1.0,2.0,3.0])
>>> KroghInterpolator([0,0,0],[1,2,3]).derivatives([0,0])
array([[1.0,1.0],
       [2.0,2.0],
       [3.0,3.0]])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.interpolate._polyint._Interpolator1DWithDerivatives.derivatives

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/interpolate/_polyint.py#142
type: <class 'function'>
Commit: