def derivative(self, x):
    "\n        Evaluates the derivative of the interpolated function at the given input.\n\n        Parameters\n        ----------\n        x : np.array or float\n            Real values to be evaluated in the interpolated function.\n\n        Returns\n        -------\n        dydx : np.array or float\n            The interpolated function's first derivative evaluated at x:\n            dydx = f'(x), with the same shape as x.\n        "
    z = np.asarray(x)
    return self._der(z.flatten()).reshape(z.shape)
Evaluates the derivative of the interpolated function at the given input.

Parameters
----------
x : np.array or float
    Real values to be evaluated in the interpolated function.

Returns
-------
dydx : np.array or float
    The interpolated function's first derivative evaluated at x:
    dydx = f'(x), with the same shape as x.
def derivative(self, x):
    "\n        Evaluates the derivative of the interpolated function at the given input.\n\n        Parameters\n        ----------\n        x : np.array or float\n            Real values to be evaluated in the interpolated function.\n\n        Returns\n        -------\n        dydx : np.array or float\n            The interpolated function's first derivative evaluated at x:\n            dydx = f'(x), with the same shape as x.\n        "
    z = np.asarray(x)
    return self._der(z.flatten()).reshape(z.shape)