How the calculator reads an expression
A basic calculator works on each key as you press it, so 2 + 3 × 4 gives 20. A scientific calculator reads the whole expression first and applies the standard order of operations, so the same keys give 14. This calculator works the second way. It evaluates in this order:
- Brackets, innermost first, including the brackets after a function such as sin( ).
- Factorials and percent signs, which attach to the number just before them.
- Powers, read from right to left, so 2^3^2 is 2^9 = 512.
- A minus sign in front of a number.
- Multiplication and division, left to right.
- Addition and subtraction, left to right.
2 + 3 × 4 = 2 + 12 = 14 but (2 + 3) × 4 = 5 × 4 = 20
Multiplication can be left out where it is obvious: 2π means 2 × π, and 3(4 + 1) means 3 × 5.
Worked examples
The long side of a right-angled triangle
For sides of 3 and 4, Pythagoras gives the hypotenuse as the square root of 3² + 4². Enter √(3^2+4^2). The powers are worked out first (9 and 16), then added inside the bracket (25), then the root is taken, giving 5.
Compound growth
$1,000 growing at 5% a year for 10 years is 1000 × 1.05^10. The power is evaluated before the multiplication: 1.05^10 is about 1.628895, and multiplying by 1,000 gives 1,628.89.
An angle from a ratio
If the side opposite an angle is half the hypotenuse, the angle is sin⁻¹(0.5). In degree mode that is 30. In radian mode the same keys give 0.5236, which is π ÷ 6.
Results that surprise people
−2^2 is −4, not 4
The power is applied before the minus sign, so the calculator squares 2 and then negates it. That is the mathematical convention, and it is why −x² and (−x)² are different expressions. To square a negative number, bracket it: (−2)^2 gives 4.
Degrees versus radians
sin(30) is 0.5 in degrees but about −0.988 in radians. A wrong mode is the most common cause of a trig answer that looks nothing like what you expected. Radians are the usual choice in calculus and physics formulas; degrees are usual for surveying, navigation and school geometry.
tan(90°) has no value
The tangent of 90 degrees is undefined, because it means dividing by the cosine of 90 degrees, which is zero. Many calculators show an enormous number there because of rounding. This one reports an error instead.
Tiny rounding errors
Computers store numbers in binary, and most decimals cannot be stored exactly, which is why 0.1 + 0.2 comes out as 0.30000000000000004 in raw form. Answers here are shown to 12 significant figures, which hides that noise but also means the last digits of very long results are rounded.
Limits
The calculator works with real numbers only, so the square root of a negative number or the logarithm of zero is reported as an error. Factorials are limited to whole numbers up to 170, beyond which the result is too large to store. It does not do algebra, fractions or complex numbers.