(Legitimate Math Operators (Order and hierarchy is IMPORTANT!)
+ add
- subtract
/ divide
* multiply
() hierarchy - Example (4 + 1) / 2 or 4 + 1 / 2
% modulus - Example (8 + 7) % 13 returns 2
----------Math properties (Constants. Important: Upper Case ONLY!).
E (Base of natural logs, about 2.718)
LN10 (Natural log of 10, about 2.302)
LN2 (Natural log of 2, about .693)
LOG2E (Logarithm of E to base 2, about 1.442)
LOG10E (Logarithm of E to base 10, about .434)
PI (PI = ratio of circumference of circle to diameter, about 3.142)
----------Methods (Functions. Important: Lower Case ONLY!)-----
abs(x) (absolute value of x)
acos(x) (arc cosine of x, in radians)
asin(x) (arc sine of x, in radians)
atan(x) (arc tangent of x, in radians)
ceil(x) (next greater integer than x)
cos(x) (cosine of x, x in radians)
exp(x) (exponential function of x)
floor(x) (next smaller integer)
log(x) (natural logarithm of x)
max(x,y) (maximum of x, y)
min(x,y) (minimum of x, y)
pow(x,y) (x raised to the y power)
random() (pseudo-random number, uniform between 0 and 1)
round(x) (rounds x to the nearest integer)
sin(x) (sine of x, where x in radians)
sqrt(x) (square root of x)
tan(x) (tangent of x, where x is in radians)