diff options
Diffstat (limited to 'node_modules/locutus/php/math/acosh.js')
-rw-r--r-- | node_modules/locutus/php/math/acosh.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/acosh.js b/node_modules/locutus/php/math/acosh.js new file mode 100644 index 0000000..42b4d04 --- /dev/null +++ b/node_modules/locutus/php/math/acosh.js @@ -0,0 +1,11 @@ +"use strict"; + +module.exports = function acosh(arg) { + // discuss at: http://locutus.io/php/acosh/ + // original by: Onno Marsman (https://twitter.com/onnomarsman) + // example 1: acosh(8723321.4) + // returns 1: 16.674657798418625 + + return Math.log(arg + Math.sqrt(arg * arg - 1)); +}; +//# sourceMappingURL=acosh.js.map
\ No newline at end of file |