G is a vector spectrum evaluated at positive and negative
frequencies as defined by makefreq.
tstart, dt and n define the output time vector as described above.
g is the Inverse Fourier Transform of G scaled by dt.
time shift theorem has been used to account for time not starting at t=0.