phys_581.example

phys_581.example#

Example module with a simple function.

Functions#

differentiate_fft(f[, dx])

Return the derivative of f using the FFT.

Module Contents#

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.