summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/asinh.js
blob: c91974185abf4df35237ef035a0ad08bc5b66f02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

module.exports = function asinh(arg) {
  //  discuss at: http://locutus.io/php/asinh/
  // original by: Onno Marsman (https://twitter.com/onnomarsman)
  //   example 1: asinh(8723321.4)
  //   returns 1: 16.67465779841863

  return Math.log(arg + Math.sqrt(arg * arg + 1));
};
//# sourceMappingURL=asinh.js.map