summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/tanh.js.map
blob: 2b8a060c841462c087b0dcfa71b4c873a08a2eb5 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/math/tanh.js"],"names":["module","exports","tanh","arg","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA,SAAO,IAAI,KAAKC,KAAKC,GAAL,CAAS,IAAIF,GAAb,IAAoB,CAAzB,CAAX;AACD,CARD","file":"tanh.js","sourcesContent":["module.exports = function tanh (arg) {\n  //  discuss at: http://locutus.io/php/tanh/\n  // original by: Onno Marsman (https://twitter.com/onnomarsman)\n  // imprived by: Robert Eisele (http://www.xarg.org/)\n  //   example 1: tanh(5.4251848798444815)\n  //   returns 1: 0.9999612058841574\n\n  return 1 - 2 / (Math.exp(2 * arg) + 1)\n}\n"]}