This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _polyint / _Interpolator1DWithDerivatives / derivatives

function

scipy.interpolate._polyint:_Interpolator1DWithDerivatives.derivatives

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_polyint.py:152

Signature

def derivatives(self, x, der = None)

Summary

Evaluate several derivatives of the polynomial at the point x.

Extended Summary

Produce an array of derivatives evaluated at the point x.

Parameters

x : array_like

Point or points at which to evaluate the derivatives

der : int or list or None, optional

How many derivatives to evaluate, or None for all potentially nonzero derivatives (that is, a number equal to the number of points), or a list of derivatives to evaluate. This number includes the function value as the '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.

Examples

from scipy.interpolate import KroghInterpolator
✓
KroghInterpolator([0,0,0],[1,2,3]).derivatives(0)
KroghInterpolator([0,0,0],[1,2,3]).derivatives([0,0])
✗
array([[1., 1.],
       [2., 2.],
       [3., 3.]])

Aliases

  • scipy.interpolate._polyint._Interpolator1DWithDerivatives.derivatives