Below is a short list of math objects properties and methods available. These can be applied with your formulas.
Property | Description |
---|---|
Math.E | Returns Euler's number (approx. 2.718) |
Math.LN2 | Returns the natural logarithm of 2 (approx. 0.693) |
Math.LN10 | Returns the natural logarithm of 10 (approx. 2.302) |
Math.LOG2E | Returns the base-2 logarithm of E (approx. 1.442) |
Math.LOG10E | Returns the base-10 logarithm of E (approx. 0.434) |
Math.SQRT1_2 | Returns the square root of 1/2 (approx. 0.707) |
Math.SQRT2 | Returns the square root of 2 (approx. 1.414) |
Method | Description |
---|---|
Math.acos(x) | Returns the arccosine of x, in radians |
Math.asin(x) | Returns the arcsine of x, in radians |
Math.atan(x) | Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians |
Math.atan2(y,x) | Returns the arctangent of the quotient of its arguments |
Math.cos(x) | Returns the cosine of x (x is in radians) |
Math.exp(x) | Returns the value of Ex |
Math.log(x) | Returns the natural logarithm (base E) of x |
Math.sin(x) | Returns the sine of x (x is in radians) |
Math.tan(x) | Returns the tangent of an angle |