bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _fitpack2 / UnivariateSpline / derivatives
function
scipy.interpolate._fitpack2:UnivariateSpline.derivatives
source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_fitpack2.py:823
Signature
def derivatives(self, x)Summary
Return all derivatives of the spline at the point x.
Parameters
x: floatThe point to evaluate the derivatives at.
Returns
der: ndarray, shape(k+1,)Derivatives of the orders 0 to k.
Examples
import numpy as np from scipy.interpolate import UnivariateSpline x = np.linspace(0, 3, 11) y = x**2 spl = UnivariateSpline(x, y)✓
spl.derivatives(1.5)
✗array([2.25, 3. , 2. , 0. ])
Aliases
scipy.interpolate.UnivariateSpline.derivatives