How to do it…

Return the kth derivative (or integral) of a periodic sequence x.

If x_j and y_j are Fourier coefficients of the periodic functions x and y, respectively, then:

y_j = pow(sqrt(-1)*j*2*pi/period, order) * x_j
y_0 = 0 if order is not 0.

The previous snippet is just an illustration.

Parameters

xarray_like. Input array.

orderint, optional. The order of differentiation. Default order is 1. If order is negative, then integration is carried out under the assumption that x_0 == 0.

periodfloat, optional. The assumed period of the sequence. Default is 2*pi.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset