Toolvito

Works on this device

Advanced Number Calculator

Five number tasks that an ordinary calculator does not do well: rounding a list of expressions, arithmetic with hundreds of digits, the rational zeros of a polynomial, the closest fraction to a number, and arithmetic on ranges of values.

Enter your values

Works out roots, logarithms, powers and other expressions, and rounds each one, for example to the nearest thousandth.

Your values

Up to 20 lines. Use + − × ÷ (also * and /), ^ for powers, brackets, sqrt, abs, ln, log, log2, logb(b, x) for base b, exp, sin, cos, tan, ! for a factorial, and the constants pi and e. log is base 10.

More options

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose the task, for example Work out expressions and round them.
  2. Type one expression on each line, such as sqrt(7) or log(50). You can use sqrt, ln, log, log2, logb(3, 7) for base 3, exp, sin, cos, tan, ! for a factorial, pi and e.
  3. Choose how to round, for example to the nearest thousandth.
  4. Choose Calculate. Each line gets its value and its rounded value.

What each task does

  • Work out expressions and round them: up to 20 expressions at once. A next digit of 5 or more rounds up. log is base 10 and ln is the natural logarithm.
  • Arithmetic with many digits: whole numbers and fractions stay exact, however long. Roots, pi and e are worked out to the number of decimal places you ask for, up to 1,000.
  • Rational zeros: by the rational root theorem, a zero p/q of a polynomial with whole-number coefficients has p dividing the constant term and q dividing the leading coefficient. Every candidate is tested exactly.
  • Best fraction: the continued fraction of a number gives the closest fractions with small bottom numbers, such as 22/7 and 355/113 for pi.
  • Interval arithmetic: [a, b] + [c, d] = [a + c, b + d] and [a, b] − [c, d] = [a − d, b − c]. For × and ÷ the result runs from the smallest to the largest of the four results at the ends.

Worked examples

Rounding. √7 = 2.64575131106, which is 2.646 to the nearest thousandth. log(50) = 1.69897000434, which is 1.699.

Many digits. √2 to 30 decimal places is 1.414213562373095048801688724210. And 1/7 = 0.(142857), where the digits in brackets repeat.

Rational zeros. For 2x^3 − 3x^2 − 11x + 6 the candidates are ±1/2, ±1, ±3/2, ±2, ±3 and ±6. Testing them gives the zeros −2, 1/2 and 3, so the polynomial is (x + 2)(2x − 1)(x − 3).

Best fraction. For pi with a bottom number up to 1,000, the best fraction is 355/113 = 3.14159292035. It is only 0.000000267 too large.

Intervals. [1.5, 2.5] + [−1, 3] = [0.5, 5.5], and [1.5, 2.5] ÷ [2, 4] = [0.375, 1.25].

Limits you should know

  • Rounding uses values with about 15 significant digits. If a value lies almost exactly on a rounding edge, check it with the many-digits mode.
  • The many-digits mode knows + − × ÷, powers with a whole number or a fraction (bottom number up to 20), sqrt, abs, factorials, pi and e. It does not have ln, log, exp or the angle functions.
  • Results can have up to about 6,000 digits before the decimal point and up to 1,000 decimal places.
  • Rational zeros: one letter, powers up to 60, and first and last coefficients up to 1,000,000,000,000. Zeros that are not fractions, such as √2, are not found.
  • Best fraction: a number that is not a fraction is used with 16 significant digits.
  • Interval division needs a second interval that does not hold 0.

Related tools