SciPy

This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.interpolate.NdPPoly.derivative

NdPPoly.derivative(self, nu)[source]

Construct a new piecewise polynomial representing the derivative.

Parameters
nundim-tuple of int

Order of derivatives to evaluate for each dimension. If negative, the antiderivative is returned.

Returns
ppNdPPoly

Piecewise polynomial of orders (k[0] - nu[0], …, k[n] - nu[n]) representing the derivative of this polynomial.

Notes

Derivatives are evaluated piecewise for each polynomial segment, even if the polynomial is not differentiable at the breakpoints. The polynomial intervals in each dimension are considered half-open, [a, b), except for the last interval which is closed [a, b].