I have read some similar equations in other places, but it seems like theirs suggestions does not work in my case.
I would like to plot a complex equation in complex plane by the ContourPlot, the equation is ${\rm Re}[f(z)]=0$, where $f(z)=\sqrt{-1-z^2}-\arctan\left(\sqrt{-1-z^2}\right)$. The @Mathematica gives the following picture: It is obvious that there is a missing contour, connecting $\pm i$. Currently I have a dirty solution to this problem, i.e., replacing the original function by $i g(z)=i\sqrt{1+z^2}-i\text{ArcTanh}\left(\sqrt{1+z^2}\right)$. Instead, now I am going to plot ${\rm Im}[g(z)]=0$. It works, there is no missing any longer, see the following picture But in general it can not always modify the functions, such that ${\rm Re}[f(z)]=0$ becomes ${\rm Im}[g(z)]=0$.
My questions are:
- What's wrong with ContourPlot in this case?
- How can I solve this problem by a universal method?
Thanks in advance!