I would like to solve $\left\lvert 1+e^{ix}+e^{iy} \right\rvert=z$ as a function of $y$
For $z \in [0,3]$ this equation has real solutions $x,y$. The level sets are closed curves (if $z \neq 0,1,3$), see for example $z=2$:
However, if I let wolframalpha solve this equation
it calculates the solutions
$$y(x,z)= -i \log(-e^{ix} \pm 1-1).$$ If I enter this function in Mathematica and plot it, the Imaginary part is even for admissible values of $x,z$ non-zero. So something is wrong here.
By the implicit function theorem I should be able to solve this equation for example $z=2$ locally w.r.t. $y$ as a function of $x$. Why does this fail here?
Edit: Apparently, the question boils down to the question. How do I have to interpret the solution $y(x,z)$ so that this makes sense in my context?