differentiate_fft

differentiate_fft#

differentiate_fft(f, dx=1.0)#

Return the derivative of f using the FFT.

Parameters:
  • f (array-like) – 1D array with the function to be differentiated.

  • dx (float) – Lattice spacing.