MathsBasic Arithmetic

Advanced Scientific
calculator.

Tap or type a full line of math and see the answer, how it was read and a graph.

How it’s worked out

The calculator reads your line in a fixed order. Brackets and functions come first. Then powers, then multiply and divide, then add and subtract. Within one level it works from left to right. The working card lists each operation in that order, with the value the engine got for it.

Take the line that loads first, sin(30) + √16 × 2³ in degrees. The sine and the root are worked out first: sin 30° is 0.5 and √16 is 4. Next comes the power, 2³ = 8. Then the product, 4 × 8 = 32. Last is the sum, 0.5 + 32 = 32.5.

Two rules surprise people. A power is done before a minus sign in front of it, so −3² gives −9. Stacked powers group from the right, so 2^3^2 means 2 to the 9th, which is 512.

Degrees and radians. Trig keys treat the number as an angle. In degree mode, 30 means 30°. In radian mode, it means 30 radians. One full turn is 360° or 2π radians, so you convert like this:

θrad\displaystyle \theta_{\text{rad}}=θdeg×π180\displaystyle {}= \theta_{\text{deg}} \times \frac{\pi}{180}

Here θ (theta) is the angle. One radian is about 57.2958°. In degree mode the tool returns exact values at whole quarter turns, so sin 180° is exactly 0 and tan 90° is undefined.

Counting keys. nCr counts groups where order does not matter. nPr counts lineups where it does. n is how many items you have and r is how many you pick:

nCr\displaystyle {}^{n}C_{r}=n!r!(n−r)!\displaystyle {}= \frac{n!}{r!\,(n-r)!}nPr\displaystyle {}^{n}P_{r}=n!(n−r)!\displaystyle {}= \frac{n!}{(n-r)!}

Factorial (written n!) multiplies every whole number from n down to 1, so 5 factorial is 5 × 4 × 3 × 2 × 1 = 120.

Area and slope on the graph. The shaded area uses Simpson’s rule. It splits the range from a to b into n = 2,000 thin strips of width h and adds up the curve heights f(xi) at the strip edges, each times a weight wi:

h\displaystyle h=b−an\displaystyle {}= \frac{b-a}{n}
∫abf(x)dx\displaystyle \int_a^b f(x)\,dx≈h3∑i=0nwif(xi)\displaystyle {}\approx \frac{h}{3}\sum_{i=0}^{n} w_i\,f(x_i)

The weight wi is 1 at both ends, 4 at every odd strip edge and 2 at every even one inside the range, so the pattern runs 1, 4, 2, 4, …, 4, 1.

The slope at x₀ uses the curve’s height at four nearby points: x₀ − 2h, x₀ − h, x₀ + h and x₀ + 2h. Here h is 0.001, or 0.001 × |x₀| when |x₀| is more than 1. Both are close estimates, not exact algebra. For a curve that is smooth between a and b they agree with the exact answer to many digits.

Zeros and turning points. The graph marks where f crosses zero and where it turns. The tool works out f at 2,001 evenly spaced x values across the window. Wherever the sign flips between two neighbours, it halves that gap again and again until the crossing is pinned down. Turning points are found the same way from the slope. A flip across a break in the curve, such as tan 90°, is not counted. A curve that only touches zero without crossing it is missed unless one of the grid points lands on it.

For the curve that loads first, 0.1x³ − x + 1, the zeros are at x = −3.5771, 1.1535 and 2.4236. It turns at x = −1.8257 (a maximum) and x = 1.8257 (a minimum), which are −√(10/3) and √(10/3).

Worked examples

How high does the ladder reach?

Dana leans a 6 m ladder against a wall at 70° to the ground. The height it reaches is the ladder length times the sine of the angle: 6 sin 70°. In degree mode that is 5.638 m. The foot sits 6 cos 70° = 2.052 m from the wall.

If the calculator were in radian mode, the same keys would give 4.643, which is wrong for this question. The answer panel shows that radian value beside the real one, so the slip is easy to spot.

Open this example in the tool

What are the odds of a royal flush?

Leo wants the chance of being dealt a royal flush in five-card poker. The number of possible hands is nCr(52, 5) = 2,598,960, because the order of the cards does not matter. Only 4 of those hands are royal flushes, one per suit.

So the chance is 42,598,960\frac{4}{2{,}598{,}960} = 1.539077169 × 10⁻⁶. That is about 1 in 649,740. With so many zeros after the point, scientific notation is the easier form to read. Pick 3 significant figures in the rounding control to get 0.00000154.

Open this example in the tool

The area under one arch of a sine wave

Mia’s first calculus worksheet asks for the area under y = sin x from 0 to π. In the grapher, set f(x) = sin(x), choose radians and set a = 0 and b = π. The shaded area is 2, which matches the exact answer of 2.

Now switch to degrees and set b = 180. The area becomes 114.59. Both are correct. In degree mode, x is counted in degrees, so each unit of x is a much thinner slice of the curve. Calculus formulas assume radians, which is why textbooks use them for areas and slopes.

Open this example in the tool

Reading your result

The big number is your answer, rounded for display. Auto shows up to 10 decimal places and drops tiny binary leftovers, so 0.1 + 0.2 shows as 0.3. Choose decimal places for money, such as 2 places for 1,647.01. Choose significant figures for measured values, which are often given to 3.

Reads as shows how the line was understood, with fractions stacked and powers raised. If it does not match what you meant, add brackets. 6 ÷ 2(1 + 2) reads as 6 over 2, then times (1 + 2), which gives 9.

The tiles give the same value in other forms. Scientific notation keeps 10 significant digits. The fraction appears when one with a bottom number up to 10,000 matches to 12 digits. Degrees, minutes and seconds are there for map and survey angles. For any line with trig, one tile shows the answer in the other angle unit.

Full stored value is the number exactly as the computer holds it. Computers store about 15 to 17 significant digits in the IEEE 754 double format. Whole numbers above 2⁵³, about 9 × 10¹⁵, cannot all be stored exactly, and the result sentence warns you when you pass that point. Anything above about 1.8 × 10³⁰⁸ is too large, so 171 factorial is reported as an overflow.

Messages instead of a number mean the math has no real answer. Common cases are the square root of a negative number, ln of 0, dividing by 0 and tan 90°. Fix the input rather than the mode.

Common mistakes

  • The wrong angle mode. sin(30) is 0.5 in degrees but −0.988 in radians. School trig and most word problems use degrees; calculus uses radians.
  • Expecting −3² to be 9. The power is done first, then the minus sign, so the answer is −9. Use the bracket keys for (−3)² when you mean the square of −3.
  • Mixing up sin⁻¹ and one over sin. sin⁻¹ is the inverse sine: it turns a ratio back into an angle, so sin⁻¹(0.5) = 30°. 1sin⁡x\frac{1}{\sin x} is the cosecant, a different thing: at x = 30° it is 2.
  • Mixing up log and ln. log is base 10, so log 1000 = 3. ln is base e, about 2.718. Formulas for growth and decay almost always want ln.
  • Typing × 10 ^ for a power of ten. Use the ×10ⁿ key for numbers like 3 × 10⁸. It keeps the number as one value, so 1 ÷ 3 × 10⁸ entered that way gives 3.333 × 10⁻⁹. Typed with × and a power, the division happens first and you get 33,333,333.
  • Rounding halfway through. $1,000 at 5% a year, added monthly for 10 years, grows to $1,647.01. Round 0.0512\frac{0.05}{12} to 0.004 first and you get $1,614.53. Keep the whole line together, or reuse Ans, which holds the full value.
  • Leaving a bracket open. Faint closing brackets show what the calculator will add. If the answer looks odd, close them yourself where you want them.

Questions people ask

The calculator is in radian mode, so 30 is read as 30 radians, not 30 degrees. Switch the angle unit to Degrees and sin(30) gives 0.5. For any line with sin, cos, tan or their inverses, the answer panel also shows the value in the other unit, so you can see which one your question needs.

Sources

  • James Stewart, Lothar Redlin and Saleem Watson, Precalculus: Mathematics for Calculus, 7th edition (Cengage, 2016), chapters 5 and 6 (trigonometric functions and special angles)
  • IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic (double precision binary64)
  • Richard L. Burden and J. Douglas Faires, Numerical Analysis, 9th edition (Brooks/Cole, 2011), sections 4.1 (finite-difference derivatives) and 4.4 (composite Simpson's rule)
  • OEIS Foundation, A002193 (decimal expansion of the square root of 2) and A000142 (factorial numbers)