tanh method

Complex tanh()

Computes the hyperbolic tangent of this complex number.

Implementation

Complex tanh() {
  final a2 = 2 * a, b2 = 2 * b;
  final d = a2.cosh() + b2.cos();
  return Complex(a2.sinh() / d, b2.sin() / d);
}