I'm searching for the roots of a complex function of $x$ with parameters $k$ and $q$
$$
\begin{align*}
f(x;q,k)&=
2 i q\log(-2 ik)+i\pi-2 i\;\text{Im}\big(\log(\Gamma(1+2 i q))\big)\\
&+\log\left(\frac{\Gamma(1+i q+i qx/k)}{\Gamma(1+iq+iqx/k)}\right)+\log\left(\frac{\sqrt{1-x}-\sqrt{-1-x}}{\sqrt{1-x}+\sqrt{-x-1}}\right)
\end{align*}
$$
where $k=\sqrt{(-x+1)(-x-1)}$, $x$ is complex with $\text{Re}(x)<-1$ and $\text{Im}(x)>0$ and $q$ is real and positive parameter. If I change the seed in FindRoot
slightly, the result changes dramatically. How may I efficiently find these roots?
Code:
2 I*q*Log[-2*I*Sqrt[(-x + 1) (-x - 1)]] + I*π - 2*I*Arg[
Gamma[1 + 2*I*q]] + Log[Gamma[1 + I*q - I*q*x/Sqrt[(-x + 1) (-x - 1)]]] -
Log[Gamma[1 - I*q - I*q*x/Sqrt[(-x + 1) (-x - 1)]]] + Log[Sqrt[-x + 1] -
Sqrt[-x - 1]] - Log[Sqrt[-x + 1] + Sqrt[-x - 1]]
FindRoot
? $\endgroup$x == -1
, forq == 0.1, 1., 10.
. Try plotting it (ContourPlot[Abs[fn[x]],...]
). $\endgroup$LogGamma[]
is built-in? $\endgroup$