why do you say for sin(2*pi*t) the polarity is reversed? The theoretical equation has 1/(2*1i) as the scaling factor, so the result is correct.
As to the Gaussian signal, the relation you quoted is for continuous Fourier transform, not for FFT. Since you don't sample every point on the curve, your frequency domain sample does not end up at 1. The value at f=0 is simply sum(x)/length(x), which is approximately 0.05, matching what you get.
Another way to look at it is that the point in your frequency domain result represents the integration of a small frequency bin, and the width of each bin is fs/N where fs is the sampling rate and N is the number points. In your example, fs is 5 and N is length(x). Therefore, the value is 1*5/length(x).
Best Answer