A calculator extension for Chrome
Operator | Name |
---|---|
+ | Add |
- | Subtract |
* | Multiply |
/ | Divide |
% | Modulus |
^ | Exponent |
! | Factorial |
E | Scientific Notation |
Constant | Value |
---|---|
pi | 3.1415926536 |
e | 2.7182818285 |
Absolute value of x
Generate a random number, min
and max
are optional. If only max
is given, min
is assumed to be 0
Sum multiple numbers
Sum a range of numbers, inclusive
Square root of x
Cube root of x
Calculates an arbitrary root of val
Round x
down to the nearest integer
Round x
to the nearest integer (.5
is rounded up)
Round x
up to the nearest integer
Truncate x
to the amount of decimal places determined by decimals
(default: 0
)
Sine and Arcsine (also written as sin-1(x)
)
Cosine and Arccosine (also written as cos-1(x)
)
Tangent and Arctangent (also written as tan-1(x)
)
Logarithm base 10 of x
Logarithm base e
of x
Returns 1
if x
is prime, and 0
if x
is not prime
Returns the greatest common divisor (factor) of two numbers. Returns 0
if either number is not an integer
Convert value
from hexadecimal (base 16) to decimal (base 10)
Convert value
from octal (base 8) to decimal (base 10)
Convert value
from binary (base 2) to decimal (base 10)
Converts value
from from_unit
to to_unit
Creates a list that spans from start
to stop
, with an optional step
size (default: 1
)
Compute equation
for each value of variable
as defined by the range [start
, stop
] with an optional step
size (default: 1
)
- Multiple expressions can be separated by using commas (,) in the input field.
- Ex:
1 + 2, 3 - 5
=3, -2
- Ex:
- Each expression is evaluated separately, and displayed in their respective order after being evaluated. Definition expressions (Ex.
x = 4
) are not displayed as output.
- Supports arbitrary variable names (all lowercase, must not collide with constants or operators)
- A variable definition is an expression that starts with a variable name, an equals sign, followed by an evaluable expression (Ex.
x = 4
, ormyvar = 5 + 6
) - Variables can be defined before or after an expression (Ex.
x = 2, 3x
and3x, x = 2
are both valid) - Variables definitions that rely on each other must be defined in order (Ex.
x = 2, y = 5 - x
is valid, buty = 5 - x, x = 2
is not valid)
- Supports both degree (Deg) and radian (Rad) modes
- Keeps track of the last 25 calculations and results