frontend/.pnpm-store/v3/files/a4/93c9bd314f5cb0e221a641a6807d339fee00dd5f59d198049695914c56efaee18a3cfe536e93fec6f78401d62074dbbcea039608833b845589a094d12eaeff

12 lines
238 B
Plaintext

"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;
};