I have the following PGF Plot
\begin{tikzpicture}
\begin{axis}[
xlabel={$f$},
ylabel={$P_{W}(f)$},
%ytick={0.6,0.8,...,2},
%ymin=0,
%ymax=0.4,
]
\addplot[domain=-0.5:0.5,color=blue,samples=100]{1/(abs(1-(0.5/(e^(2*sqrt(1)*pi*x)))))};
\end{axis}
\end{tikzpicture}
the sqrt(1) is supposed to be a complex number, so sqrt(-1) or "i". But PGF Plot doesn't seem to be able to calculate this. How can I do this in PGFPlot?

pgfplotsdoes not support complex numbers. – Oct 15 '19 at 12:55absvalue (which is real), you can evaluate it first and then plot. – nidhin Oct 15 '19 at 13:15