Computes the complex tangent of z.
z
complex ctan(complex z) { double d = math.cos(2 * z.real) + _cosh(2 * z.imag); return complex(math.sin(2 * z.real) / d, _sinh(2 * z.imag) / d); }