ToolPythonBeginner
numpy.fft.fftfreq
Python. Called in 2 tutorials; each line below leads to its place in the tutorial.
ToolPythonIntermediate
The angular spectrum method with numpy.fft: a laser beam and a slit
- print("fftfreq order:", np.fft.fftfreq(8, d=1 / 8))
- kx = 2 * np.pi * np.fft.fftfreq(E.shape[0], d=dx) # wavenumbers in NumPy's order
- kx = 2 * np.pi * np.fft.fftfreq(N, d=dx)
- kx = 2 * np.pi * np.fft.fftfreq(E.size, d=dx)
- kx = 2 * np.pi * np.fft.fftfreq(x_s.size, d=dx_slit)
- kx_fine = 2 * np.pi * np.fft.fftfreq(x_fine.size, d=0.1e-6)