Version 1
[yaffs-website] / node_modules / core-js / library / modules / es6.math.asinh.js
1 // 20.2.2.5 Math.asinh(x)
2 var $export = require('./_export')
3   , $asinh  = Math.asinh;
4
5 function asinh(x){
6   return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
7 }
8
9 // Tor Browser bug: Math.asinh(0) -> -0 
10 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', {asinh: asinh});