How to use
+
Addition
-
Subtraction
*
Multiplication
Use the Math method when using special numbers or expressions.
Example: Math.PI
or Math.sin(integer)
.
Keyboard
Arrow key up
- copy last expression to input
Esc
- instructions
Special numbers
E
- Euler's number (2.718)
LN2
- Natural logarithm of 2 (0.693)
LN10
- Natural logarithm of 10 (2.302)
LOG2E
- Base-2 logarithm of E (1.442)
LOG10E
- Base-10 logarithm of E (0.434)
PI
- Value of PI (3.14)
SQRT1_2
- Square root of 1/2 (0.707)
SQRT2
- Square root of 2 (1.414)
Math expressions
abs(x)
- Absolute value of x
acos(x)
- Arccosine of x, in radians
asin(x)
- Arcsine of x, in radians
atan(x)
- Arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2(y,x)
- Arctangent of the quotient of its arguments
ceil(x)
- Value of x rounded upwards to the nearest integer
cos(x)
- Cosine of x (x is in radians)
exp(x)
- Value of Ex
floor(x)
- Value of x, rounded downwards to the nearest integer
log(x)
- Natural logarithm (base E) of x
max(x,y,z,...,n)
- Number with the highest value
min(x,y,z,...,n)
- Number with the lowest value
pow(x,y)
- Value of x to the power of y
random()
- Random number between 0 and 1. Example: Math.floor((Math.random()*10)+1)
round(x)
- Rounds x to the nearest integer
sin(x)
- Sine of x (x is in radians)
sqrt(x)
- Square root of x
tan(x)
- Tangent of an angle