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