UNPKG

ubique

Version:

A mathematical and quantitative library for Javascript and Node.js

23 lines (22 loc) 500 B
/** * Constants properties */ module.exports = function($u) { /** * Constants values * @type {number} */ $u.Inf = Number.POSITIVE_INFINITY; $u.maxval = Number.MAX_VALUE; $u.minval = Number.MIN_VALUE; $u.PI = Math.PI; $u.E = Math.E; $u.LN2 = Math.LN2; $u.LN10 = Math.LN10; $u.LOG2E = Math.LOG2E; $u.LOG10E = Math.LOG10E; $u.SQRT1_2 = Math.SQRT1_2; $u.SQRT2 = Math.SQRT2; $u.eps = 2.2204460492503130808472633361816E-16; $u.phi = 1.618033988749894848204586834; }