tanh method

Complex tanh()

Implementation

Complex tanh() {
  final s = sinh();
  final c = cosh();
  if (c == zero) {
    throw ArgumentError('Hyperbolic tangent is undefined: division by zero.');
  }
  return s / c;
}