tanh static method Null safety

double tanh(
  1. double x
)

Implementation

static double tanh(double x) {
  final e2x = dart.exp(2 * x);
  return (e2x - 1) / (e2x + 1);
}