mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 11:12:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
14
node_modules/es5-ext/math/atanh/shim.js
generated
vendored
Normal file
14
node_modules/es5-ext/math/atanh/shim.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var log = Math.log;
|
||||
|
||||
module.exports = function (x) {
|
||||
if (isNaN(x)) return NaN;
|
||||
x = Number(x);
|
||||
if (x < -1) return NaN;
|
||||
if (x > 1) return NaN;
|
||||
if (x === -1) return -Infinity;
|
||||
if (x === 1) return Infinity;
|
||||
if (x === 0) return x;
|
||||
return 0.5 * log((1 + x) / (1 - x));
|
||||
};
|
||||
Reference in New Issue
Block a user