]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/math/asinh/shim.js
42fbf1457f7604924555bda7d237798d0587ba3a
3 var log
= Math
.log
, sqrt
= Math
.sqrt
;
5 module
.exports = function (x
) {
6 if (isNaN(x
)) return NaN
;
9 if (!isFinite(x
)) return x
;
12 return -log(x
+ sqrt(x
* x
+ 1));
14 return log(x
+ sqrt(x
* x
+ 1));