I am trying to implement an explicit Euler scheme in the Fourier space in order to solve the unsteady heat equation in one dimension :
The scheme is written a