增加晶全app静态页面
This commit is contained in:
17
node_modules/es5-ext/math/tanh/shim.js
generated
vendored
Normal file
17
node_modules/es5-ext/math/tanh/shim.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
var exp = Math.exp;
|
||||
|
||||
module.exports = function (value) {
|
||||
var num1, num2;
|
||||
if (isNaN(value)) return NaN;
|
||||
value = Number(value);
|
||||
if (value === 0) return value;
|
||||
if (value === Infinity) return 1;
|
||||
if (value === -Infinity) return -1;
|
||||
num1 = exp(value);
|
||||
if (num1 === Infinity) return 1;
|
||||
num2 = exp(-value);
|
||||
if (num2 === Infinity) return -1;
|
||||
return (num1 - num2) / (num1 + num2);
|
||||
};
|
Reference in New Issue
Block a user