Mathematical constants.
var constants = require( '@stdlib/constants/math' );Mathematical constants.
var c = constants;
// returns {...}APERY: Apéry's constant.CATALAN: Catalan's constant.CBRT_EPS: cube root of double-precision floating-point epsilon.E: the mathematical constant e.EPS: difference between one and the smallest value greater than one that can be represented as a double-precision floating-point number.EULERGAMMA: the Euler-Mascheroni constant.FLOAT64_EXPONENT_BIAS: the bias of a double-precision floating-point number's exponent.FOURTH_PI: one fourth times the mathematical constant π.FOURTH_ROOT_EPS: fourth root of double-precision floating-point epsilon.GAMMA_LANCZOS_G: arbitrary constantgto be used in Lanczos approximation functions.GLAISHER: Glaisher-Kinkelin constant.HALF_LN2: one half times the natural logarithm of 2.HALF_PI: one half times the mathematical constant π.FLOAT64_HIGH_WORD_EXPONENT_MASK: high word mask for the exponent of a double-precision floating-point number.FLOAT64_HIGH_WORD_SIGNIFICAND_MASK: high word mask for the significand of a double-precision floating-point number.LN_HALF: natural logarithm of1/2.LN_PI: natural logarithm of the mathematical constant π.LN_SQRT_TWO_PI: natural logarithm of the square root of 2π.LN10: natural logarithm of10.LN2: natural logarithm of2.LN_TWO_PI: natural logarithm of2π.LOG10E: base 10 logarithm of the mathematical constant e.LOG2E: base 2 logarithm of the mathematical constant e.FLOAT64_MAX: maximum double-precision floating-point number.FLOAT64_MAX_BASE10_EXPONENT: the maximum base 10 exponent for a double-precision floating-point number.FLOAT64_MAX_BASE10_EXPONENT_SUBNORMAL: the maximum base 10 exponent for a subnormal double-precision floating-point number.FLOAT64_MAX_BASE2_EXPONENT: the maximum biased base 2 exponent for a double-precision floating-point number.FLOAT64_MAX_BASE2_EXPONENT_SUBNORMAL: the maximum biased base 2 exponent for a subnormal double-precision floating-point number.FLOAT64_MAX_LN: natural logarithm of the maximum double-precision floating-point number.FLOAT64_MAX_SAFE_FIBONACCI: maximum safe Fibonacci number when stored in double-precision floating-point format.FLOAT64_MAX_SAFE_INTEGER: maximum safe double-precision floating-point integer.FLOAT64_MAX_SAFE_LUCAS: maximum safe Lucas number when stored in double-precision floating-point format.FLOAT64_MAX_SAFE_NTH_FIBONACCI: maximum safe nth Fibonacci number when stored in double-precision floating-point format.FLOAT64_MAX_SAFE_NTH_LUCAS: maximum safe nth Lucas number when stored in double-precision floating-point format.FLOAT64_MIN_BASE10_EXPONENT: the minimum base 10 exponent for a normal double-precision floating-point number.FLOAT64_MIN_BASE10_EXPONENT_SUBNORMAL: the minimum base 10 exponent for a subnormal double-precision floating-point number.FLOAT64_MIN_BASE2_EXPONENT: the minimum biased base 2 exponent for a normal double-precision floating-point number.FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL: the minimum biased base 2 exponent for a subnormal double-precision floating-point number.FLOAT64_MIN_LN: natural logarithm of the smallest normalized double-precision floating-point number.FLOAT64_MIN_SAFE_INTEGER: minimum safe double-precision floating-point integer.NINF: double-precision floating-point negative infinity.FLOAT64_NUM_BYTES: size (in bytes) of a double-precision floating-point number.PHI: golden ratio.PI: the mathematical constant π.PI_SQUARED: π².PINF: double-precision floating-point positive infinity.FLOAT64_PRECISION: effective number of bits in the significand of a double-precision floating-point number.FLOAT64_SMALLEST_NORMAL: smallest positive normalized double-precision floating-point number.FLOAT64_SMALLEST_SUBNORMAL: smallest positive denormalized double-precision floating-point number.SQRT_EPS: square root of double-precision floating-point epsilon.SQRT_HALF: square root of1/2.SQRT_HALF_PI: square root of the mathematical constant π divided by 2.SQRT_PHI: square root of the Golden ratio (φ).SQRT_PI: square root of the mathematical constant π.SQRT_THREE: square root of3.SQRT_TWO: square root of2.SQRT_TWO_PI: square root of the mathematical constant π times 2.TWO_PI: the mathematical constant π times 2.
FLOAT32_CBRT_EPS: cube root of single-precision floating-point epsilon.FLOAT32_EPS: difference between one and the smallest value greater than one that can be represented as a single-precision floating-point number.FLOAT32_EXPONENT_BIAS: the bias of a single-precision floating-point number's exponent.FLOAT32_MAX: maximum single-precision floating-point number.FLOAT32_MAX_SAFE_INTEGER: maximum safe single-precision floating-point integer.FLOAT32_MIN_SAFE_INTEGER: minimum safe single-precision floating-point integer.FLOAT32_NINF: single-precision floating-point negative infinity.FLOAT32_NUM_BYTES: size (in bytes) of a single-precision floating-point number.FLOAT32_PINF: single-precision floating-point positive infinity.FLOAT32_PRECISION: effective number of bits in the significand of a single-precision floating-point number.FLOAT32_SMALLEST_NORMAL: smallest positive normalized single-precision floating-point number.FLOAT32_SMALLEST_SUBNORMAL: smallest positive denormalized single-precision floating-point number.FLOAT32_SQRT_EPS: square root of single-precision floating-point epsilon.
FLOAT16_CBRT_EPS: cube root of half-precision floating-point epsilon.FLOAT16_EPS: difference between one and the smallest value greater than one that can be represented as a half-precision floating-point number.FLOAT16_EXPONENT_BIAS: the bias of a half-precision floating-point number's exponent.FLOAT16_MAX: maximum half-precision floating-point number.FLOAT16_MAX_SAFE_INTEGER: maximum safe half-precision floating-point integer.FLOAT16_MIN_SAFE_INTEGER: minimum safe half-precision floating-point integer.FLOAT16_NINF: half-precision floating-point negative infinity.FLOAT16_NUM_BYTES: size (in bytes) of a half-precision floating-point number.FLOAT16_PINF: half-precision floating-point positive infinity.FLOAT16_PRECISION: effective number of bits in the significand of a half-precision floating-point number.FLOAT16_SMALLEST_NORMAL: smallest positive normalized half-precision floating-point number.FLOAT16_SMALLEST_SUBNORMAL: smallest positive denormalized half-precision floating-point number.FLOAT16_SQRT_EPS: square root of half-precision floating-point epsilon.
INT16_MAX: maximum signed 16-bit integer.INT16_MIN: minimum signed 16-bit integer.INT16_NUM_BYTES: size (in bytes) of a 16-bit signed integer.INT32_MAX: maximum signed 32-bit integer.INT32_MIN: minimum signed 32-bit integer.INT32_NUM_BYTES: size (in bytes) of a 32-bit signed integer.INT8_MAX: maximum signed 8-bit integer.INT8_MIN: minimum signed 8-bit integer.INT8_NUM_BYTES: size (in bytes) of an 8-bit signed integer.UINT16_MAX: maximum unsigned 16-bit integer.UINT16_NUM_BYTES: size (in bytes) of a 16-bit unsigned integer.UINT32_MAX: maximum unsigned 32-bit integer.UINT32_NUM_BYTES: size (in bytes) of a 32-bit unsigned integer.UINT8_MAX: maximum unsigned 8-bit integer.UINT8_NUM_BYTES: size (in bytes) of an 8-bit unsigned integer.
COMPLEX128_NUM_BYTES: size (in bytes) of a 128-bit complex number.COMPLEX64_NUM_BYTES: size (in bytes) of a 64-bit complex number.
var objectKeys = require( '@stdlib/utils/keys' );
var constants = require( '@stdlib/constants/math' );
console.log( objectKeys( constants ) );