asinh method

double asinh()

Returns the hyperbolic arc-sine of this num.

Implementation

double asinh() {
  if (isNaN) return double.nan;
  if (isNegative) return -(-this).asinh();
  if (this < 1e-5) {
    return toDouble() - (this * this * this) / 6.0;
  }
  if (this > 1e8) {
    return log() + math.ln2;
  }
  return (this + (this * this + 1).sqrt()).log();
}