summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/cosh.js.map
blob: da07d3ec77d296ce5346559f94096950838b72fe (plain) (blame)
1
{"version":3,"sources":["../../../src/php/math/cosh.js"],"names":["module","exports","cosh","arg","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;;AAEA,SAAO,CAACC,KAAKC,GAAL,CAASF,GAAT,IAAgBC,KAAKC,GAAL,CAAS,CAACF,GAAV,CAAjB,IAAmC,CAA1C;AACD,CAPD","file":"cosh.js","sourcesContent":["module.exports = function cosh (arg) {\n  //  discuss at: http://locutus.io/php/cosh/\n  // original by: Onno Marsman (https://twitter.com/onnomarsman)\n  //   example 1: cosh(-0.18127180117607017)\n  //   returns 1: 1.0164747716114113\n\n  return (Math.exp(arg) + Math.exp(-arg)) / 2\n}\n"]}