KroghInterpolator.derivatives(x, der=None)

Evaluate many derivatives of the polynomial at the point x

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

Parameters :

x : scalar or array_like of length N

Point or points at which to evaluate the derivatives

der : None or integer

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

If the interpolator’s values are R-dimensional then the returned array will be der by N by R. If x is a scalar, the middle dimension will be dropped; if R is 1 then the last dimension will be dropped.


>>> KroghInterpolator([0,0,0],[1,2,3]).derivatives(0)
>>> KroghInterpolator([0,0,0],[1,2,3]).derivatives([0,0])

Previous topic


Next topic


This Page