projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f9062bd976c693045bf93fd50cd33b76c531162d
[platform/framework/web/crosswalk-tizen.git]
/
1
'use strict';
2
3
var exp = Math.exp;
4
5
module.exports = function (x) {
6
if (isNaN(x)) return NaN;
7
x = Number(x);
8
if (x === 0) return 1;
9
if (!isFinite(x)) return Infinity;
10
return (exp(x) + exp(-x)) / 2;
11
};