tan method

Complex tan()

Implementation

Complex tan() {
  final s = sin();
  final c = cos();
  if (c == zero) {
    throw ArgumentError('Tangent is undefined: division by zero.');
  }
  return s / c;
}