Constants
Mathematical Constants
e
let e: floatMath.Constants.e returns Euler's number, ≈ 2.718281828459045.
See Math.E on MDN.
Examples
RESCRIPTMath.Constants.e
ln2
let ln2: floatMath.Constants.ln2 returns Natural logarithm of 2, ≈ 0.6931471805599453.
See Math.LN2 on MDN.
Examples
RESCRIPTMath.Constants.ln2
ln10
let ln10: floatMath.Constants.ln10 returns Natural logarithm of 10, ≈ 2.302585092994046.
See Math.LN10 on MDN.
Examples
RESCRIPTMath.Constants.ln10
log2e
let log2e: floatMath.Constants.log2e returns Base 2 logarithm of E, ≈ 1.4426950408889634.
See Math.LOG2E on MDN.
Examples
RESCRIPTMath.Constants.log2e
log10e
let log10e: floatMath.Constants.log10e returns Base 10 logarithm of E, ≈ 0.4342944819032518.
See Math.LOG10E on MDN.
Examples
RESCRIPTMath.Constants.log10e
pi
let pi: floatMath.Constants.pi returns Pi - ratio of the circumference to the diameter
of a circle, ≈ 3.141592653589793.
See Math.PI on MDN.
Examples
RESCRIPTMath.Constants.pi
sqrt1_2
let sqrt1_2: floatMath.Constants.sqrt1_2 returns Square root of 1/2, ≈ 0.7071067811865476.
See Math.SQRT1_2 on MDN.
Examples
RESCRIPTMath.Constants.sqrt1_2
sqrt2
let sqrt2: floatMath.Constants.e returns Absolute value for integer argument.
See Math.abs on MDN.
Examples
RESCRIPTMath.Constants.sqrt2