scipy.interpolate.KroghInterpolator.

derivative#

KroghInterpolator.derivative(x, der=1)[source]#

在点 x 处评估多项式的单个导数。

参数:
xarray_like

要评估导数的点或点集

derinteger, optional

要评估哪个导数(默认值:一阶导数)。 该数字包括作为第0阶导数的函数值。

返回:
dndarray

在 x 点处插值的导数。 d 的形状由将原始数组中的插值轴替换为 x 的形状决定。

注释

这可以通过评估直到所需导数的所有导数(使用 self.derivatives())然后丢弃其余导数来计算。