Sha256: 3318c940cdb5e8ac34aee29c3034af11a3bfea66256a44d152279b78a53cfd2a
Contents?: true
Size: 245 Bytes
Versions: 29
Compression:
Stored size: 245 Bytes
Contents
'use strict'; var log = Math.log, sqrt = Math.sqrt; module.exports = function (x) { if (isNaN(x)) return NaN; x = Number(x); if (x < 1) return NaN; if (x === 1) return 0; if (x === Infinity) return x; return log(x + sqrt(x * x - 1)); };
Version data entries
29 entries across 19 versions & 7 rubygems