This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.interpolate.InterpolatedUnivariateSpline.derivatives¶
- InterpolatedUnivariateSpline.derivatives(x)[source]¶
Return all derivatives of the spline at the point x.
Parameters: x : float
The point to evaluate the derivatives at.
Returns: der : ndarray, shape(k+1,)
Derivatives of the orders 0 to k.
Examples
>>> 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.0, 2.0, 0])