derivative

tayph.derivative(x)[source] [edit on github]

This computes the simple numerical derivative of x by convolving with kernel [-1,0,1].

Parameters
xlist, np.ndarray

The array from which the derivative is required.

Returns
derivativenp.array

The numerical derivative of x.