ToolPythonAdvanced Split-step Fourier for the nonlinear Schrödinger equation: solitons in a fiber return ifft(np.exp(0.5j * beta2 * omega**2 * h) * fft(A))A = ifft(Ah)return ifft(Ah / half if order == 2 else Ah)G = ifft(np.exp(0.5j * beta2 * om**2 * 20 * L_D) * fft(G0))
ToolPythonIntermediate The angular spectrum method with numpy.fft: a laser beam and a slit return np.fft.ifft(np.fft.fft(E) * np.exp(1j * kz * z))I_map = np.array([np.abs(np.fft.ifft(spectrum * np.exp(1j * kz * z))[view]) ** 2 for z in z_map])E_after = np.fft.ifft(np.fft.fft(np.abs(x_fine) < 5e-6) * np.exp(1j * kz_float * 1e-6))