Documentation
API
Math

Math

Constants

Variable NameNumber NameValue
Math.eEuler's number≈ 2.718281828459045
Math.ln2Natural logarithm of 2≈ 0.6931471805599453
Math.ln10Natural logarithm of 10≈ 2.302585092994046
Math.log2eBase 2 logarithm of E≈ 1.4426950408889634
Math.log10eBase 10 logarithm of E≈ 0.4342944819032518
Math.piPi - ratio of the circumference to the diameter of a circle≈ 3.141592653589793
Math.sqrt1_2Square root of 1/2≈ 0.7071067811865476
Math.sqrt2Square root of 2≈ 1.4142135623730951
Math.phiPhi is the golden ratio.1.618033988749895
Math.tauTau is the ratio constant of a circle's circumference to radius, equal to 2 * pi6.283185307179586

Functions

sqrt

Signatures
Math.sqrt(Number) => Number

sin

Signatures
Math.sin(Number) => Number

cos

Signatures
Math.cos(Number) => Number

tan

Signatures
Math.tan(Number) => Number

asin

Signatures
Math.asin(Number) => Number

acos

Signatures
Math.acos(Number) => Number

atan

Signatures
Math.atan(Number) => Number