\[|\tan z|=\left(\frac{\cosh\left(2y\right)-\cos\left(2x\right)}{\cosh\left(2y%
\right)+\cos\left(2x\right)}\right)^{1/2}.\]