Gnuplot does not understand ihow sqrt(-1), because the variable is inot assigned the value gnuplot - this is just another variable name, as far as possible. Gnuplot can understand and manipulate complex numbers using the format
z = {a,b}
which is a complex number z = (a + ib)in writing. So I could be determined
i = {0.0,1.0}
There is still a problem with what you get when you draw
plot exp(i*x)
"undefined", . (, h(x) = exp(i*x)+exp(-i*x) , .) , gnuplot .
plot real(exp(i*x)), imag(exp(i*x))
, :
set parametric
plot real(exp(i*t)), imag(exp(i*t))