Opal-Estate-Pro/node_modules/es5-ext/math/tanh/is-implemented.js
2019-09-13 09:44:33 +07:00

8 lines
191 B
JavaScript

"use strict";
module.exports = function () {
var tanh = Math.tanh;
if (typeof tanh !== "function") return false;
return tanh(1) === 0.7615941559557649 && tanh(Number.MAX_VALUE) === 1;
};