\[q=\exp\left(-\pi\frac{{K^{\prime}}\left(k\right)}{K\left(k\right)}\right),\]