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