Plato on Github
Report Home
node_modules/es5-ext/math/cosh/shim.js
Maintainability
65.87
Lines of code
11
Difficulty
10.00
Estimated Errors
0.08
Function weight
By Complexity
By SLOC
'use strict'; var exp = Math.exp; module.exports = function (x) { if (isNaN(x)) return NaN; x = Number(x); if (x === 0) return 1; if (!isFinite(x)) return Infinity; return (exp(x) + exp(-x)) / 2; };