Sign in
apache
/
camel-website
/
5821f692c523d54e73546644c2dcb402bf588db5
/
.
/
.yarn
/
unplugged
/
es5-ext-npm-0.10.63-6a78b50e16
/
node_modules
/
es5-ext
/
math
/
cosh
/
shim.js
blob: c762c84daeed386d1fb2433a754992319f612a35 [
file
] [
log
] [
blame
]
"use strict"
;
var
exp
=
Math
.
exp
;
module
.
exports
=
function
(
value
)
{
if
(
isNaN
(
value
))
return
NaN
;
value
=
Number
(
value
);
if
(
value
===
0
)
return
1
;
if
(!
isFinite
(
value
))
return
Infinity
;
return
(
exp
(
value
)
+
exp
(-
value
))
/
2
;
};