The order the calculator works in
Expressions are read with the usual precedence, taught in British schools as BIDMAS: brackets first, then indices (powers and roots), then division and multiplication, then addition and subtraction. Multiplication and division share a level and are done from left to right, as are addition and subtraction. Powers are the exception: they group from the right, so 2^3^2 is 2^9 = 512, not 8^2 = 64.
A minus sign at the start binds more loosely than a power, so −2^2 is −4, because the square is taken before the sign is applied. Write (−2)^2 if you want 4. Implied multiplication, as in 2π or 3(4 + 1), sits at the same level as an ordinary ×, and an unclosed bracket at the end is closed for you.
brackets → powers, roots, ! and % → × and ÷ → + and −
Degrees, radians and the trig keys
A full turn is 360 degrees or 2π radians, so one radian is about 57.3°. School geometry and most practical work use degrees; calculus, physics and programming languages use radians, because the derivative of sin x is cos x only when x is in radians. If sin(30) gives −0.988 instead of 0.5, the calculator is set to radians.
In degree mode, values that should be exact come out exact: sin(180) is 0 rather than a tiny rounding error, and tan(90) is reported as undefined, since the tangent heads off to infinity there. The inverse functions asin, acos and atan have no keys but can be typed, and they return an angle in whichever unit is selected. For right-angled triangles, the Pythagorean theorem calculator finds missing sides and both angles directly.
Logs, factorials and percentages
log is the logarithm to base 10, the power you raise 10 to in order to get the number, so log(1000) = 3. ln is the natural logarithm, to base e ≈ 2.71828, which appears in growth, decay and continuously compounded interest. Neither is defined for zero or negative numbers.
The factorial n! multiplies every whole number from 1 to n, so 5! = 120. It grows so fast that 170! is the largest a standard double-precision number can hold; above that, and for fractions or negatives, the calculator says there is no answer. The % key divides by 100, so 50%×80 is 40. For everyday percentage questions the percentage calculator is quicker.
Worked examples
Example 1
Order of operations: 3 + 4 × 2^2
The power comes first, 2^2 = 4. Then the multiplication, 4 × 4 = 16, and finally the addition, 3 + 16 = 19. Working strictly left to right would give (3 + 4) × 2 squared = 196, which is why the order of operations matters.
Example 2
sin(30) + cos(60) in degrees
In a right-angled triangle with a 30° angle, the side opposite that angle is half the hypotenuse, so sin(30°) = 0.5. The 60° angle is the other acute angle of the same triangle, and its cosine uses the same side, so cos(60°) is also 0.5. The sum is 1. Switch to radians and the same keys give about −1.9404, because 30 and 60 radians are many full turns.
Example 3
Choosing 2 items from 5 with factorials
The number of ways to choose 2 things from 5, ignoring order, is 5! ÷ (2! × 3!). That is 120 ÷ (2 × 6) = 120 ÷ 12 = 10. You can check by listing the pairs from A, B, C, D and E: AB, AC, AD, AE, BC, BD, BE, CD, CE and DE.
Questions people ask
Why does 1e5 not give 100,000?
Here e is always Euler's number, and a number written next to it is multiplied, so 1e5 means 1 × e × 5, about 13.59. To enter 100,000 in powers of ten, type 10^5 or 1×10^5.
Is my expression sent anywhere?
No. The expression is read by a small parser that runs in your browser, so nothing you type leaves the page. It doesn't run your input as program code, so stray text simply produces a message rather than an error.
How do I work out a cube root or other roots?
Raise to a fractional power: the cube root of 27 is 27^(1/3) = 3, and the fourth root of 81 is 81^(1/4) = 3. Put the fraction in brackets, otherwise 27^1/3 is read as (27^1) ÷ 3 = 9.