ctan method

complex ctan(
  1. complex z
)

Computes the complex tangent of z.

Implementation

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);
}