tan method

Complex tan()

Computes the tangent of this complex number.

Implementation

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