summaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es6.math.asinh.js
blob: bd34adf01ca8e2e36117892b9a7b1e664016946d (plain)
1
2
3
4
5
6
7
8
// 20.2.2.5 Math.asinh(x)
var $export = require('./$.export');

function asinh(x){
  return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
}

$export($export.S, 'Math', {asinh: asinh});