Using the Calculator
Listed below are operators supported in the Calculator:
- '+' for addition, '-' for subtraction, '/' for division
- '*' for multiplication (Note: Entering two values next to each other does not imply multiplication. So "3 times x" should be entered as "3*x" and not as "3x.")
- '^' for exponentiation
- '( )' for grouping and priority as in PEMDAS
- '%' for modulo division (e.g., "7 % 3" returns a value of 1, because 7 divided by 3 equals 2 with remainder 1.)
- '=' for equality comparison; returns a value of TRUE or FALSE
- '!=' or '≠' for "not equal"comparison; returns a value of TRUE or FALSE (We also support single-character Unicode not-equals.)
- '<', '>', '<=', '≤', '>=', '≥' for comparisons
- '?:' for conditional
- '&', 'and', 'AND' for logical AND
- '|', 'or', 'OR' for logical OR
Listed below are constants used in the Calculator:
- 'e'
- 'pi' or 'π'
Listed below are functions used in the Calculator:
- ln() -- natural logarithm
- log() -- base 10 logarithm
- random(max) -- pseudo-random number in range [0,max)
- random(min,max) -- pseudo-random number in range [min,max)
- round(x,digits) -- rounds to the specified number of decimal places
- trunc(x) -- truncates to the integer portion of the number x
- abs()
- acos()
- asin()
- atan()
- atan2()
- boolean()
- ceil()
- cos()
- exp()
- floor()
- frac()
- max()
- min()
- number()
- pow()
- sin()
- sqrt()
- string()
- tan()