Y(f) =
syms t f
a = sym('a','positive');
Y(f) = 1/(a + pi*f*2i)
The default parameters in sympref assume that the transfomr variable is angular frequency (e.g., w, rad/sec) as opposed to ordinary frequency (e.g., f, Hz). So we can either change the sympref or operate with angular frequency. Choosing the latter yields
syms w
y(t) = ifourier(Y(w/2/sym(pi)),w,t)
y = rewrite(y,'heaviside')
That rewrite worked with the default settings of sympref. However, if we have a different HeavisideAtOrigin we get an incorrect result for the inverse Fourier transform of Y(f) (in the sense that fourier(y) won't recover Y(w) )
sympref('HeavisideAtOrigin',10);
y(t) = ifourier(Y(w/2/sym(pi)),w,t);
y = rewrite(y,'heaviside')
which is a consequence of ifourier returning the result in terms of sign instead of heaviside. However, going the other way, fourier does not care about the HeavisideAtOrigin
Y(f) = fourier(exp(-a*t)*heaviside(t),t,2*sym(pi)*f) % same as above


