mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
updated bunch of file paths and changed the way posts are loaded
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 (x) {
|
||||
var a, b;
|
||||
if (isNaN(x)) return NaN;
|
||||
x = Number(x);
|
||||
if (x === 0) return x;
|
||||
if (x === Infinity) return 1;
|
||||
if (x === -Infinity) return -1;
|
||||
a = exp(x);
|
||||
if (a === Infinity) return 1;
|
||||
b = exp(-x);
|
||||
if (b === Infinity) return -1;
|
||||
return (a - b) / (a + b);
|
||||
};
|
||||
Reference in New Issue
Block a user