0.1 + 0.2 gives exactly 3/10. When an exact answer is not possible, it uses double-precision arithmetic and named numerical methods such as Gauss–Kronrod quadrature. Rounding happens only on display. Before every release, automated tests compare every calculator with reference values worked out independently.This page explains how all 68 calculators and the general tools reach their answers, how accurate each kind of result is, and how results are tested and corrected. For what these limits mean when you rely on a result, read the calculation disclaimer.
| Kind of calculation | Method | Typical accuracy | Examples |
|---|---|---|---|
| Fractions, integer powers, factorials, matrices of rational numbers | Exact rational arithmetic (BigInt) | Exact, no rounding error | Fraction calculator, inverse matrix |
| π, roots, trigonometric, logarithmic and exponential functions | IEEE 754 double precision | About 15 to 17 significant digits | Scientific calculator |
| Definite integrals | Adaptive Gauss–Kronrod quadrature (15-point rule) | About 10⁻¹¹ of the result for well-behaved functions | Integral calculator |
| Derivatives and limits | Central differences and Richardson extrapolation | Typically 10 to 12 significant digits | Derivative, limit calculators |
| Roots of general equations | Sign-change scan, then Brent’s method | Close to full double precision | Equation solver |
| Polynomial roots | Exact rational roots, then Aberth–Ehrlich iteration | About 15 significant digits | Polynomial root finder |
| Probability distributions and special functions | Lanczos approximation, series and continued fractions | About 14 significant digits | Normal distribution calculator |
Exact arithmetic first
Numbers you type are read as exact rational numbers: 0.1 is stored as 1/10, not as the nearest binary fraction. Many operations then stay exact. These include addition, subtraction, multiplication, division, integer powers, perfect roots, factorials, combinations, permutations and greatest common divisors. They are carried out on fractions whose numerator and denominator are arbitrary-precision integers (BigInt), and every result is reduced to lowest terms.
| Input | ScientifiCalc | Typical floating-point result |
|---|---|---|
0.1 + 0.2 | 3/10, shown as 0.3 | 0.30000000000000004 |
1 - 0.9 | 1/10, shown as 0.1 | 0.09999999999999998 |
30! | 265252859812191058636308480000000, every digit | 2.6525285981219103 × 10³² |
Calculators built on exact arithmetic, such as the fraction calculator and the matrix determinant, inverse and row-reduction tools, therefore introduce no rounding error at all. Where an exact answer involves square roots, as with the roots of a quadratic equation, it is given in simplified surd form alongside its decimal value. The article exact vs decimal answers explains when each form is the right one to use.
Floating-point arithmetic
Some values cannot be written as fractions: π, e, most square roots, and the results of trigonometric, logarithmic and exponential functions. For these, ScientifiCalc uses IEEE 754 double-precision floating point, which carries about 15 to 17 significant digits. The article why 0.1 + 0.2 is not exactly 0.3 explains where floating-point rounding comes from.
Values that are known to be exact are kept exact. In degree and gradian mode, sine and cosine of whole multiples of a quarter turn are returned as exactly 0, 1 or −1. So sin(180) in degrees is 0, not a tiny rounding residue such as 1.2 × 10⁻¹⁶.
Numerical methods
Where no closed-form answer is available, the calculators use the methods below. Each calculator page also names the method it relies on, and the result tells you when it is an approximation.
Definite integrals
Integrals use global adaptive Gauss–Kronrod quadrature, as in QUADPACK. Each piece of the interval is integrated with a 15-point Kronrod rule, and the embedded 7-point Gauss rule estimates the error. The piece with the largest error is split until the total estimate falls to about 10⁻¹¹ of the result, using up to 2,000 pieces. Infinite ranges are first mapped onto a finite interval. If the target accuracy is not reached, the result carries a warning.
Derivatives
Numerical derivatives use central differences at a sequence of shrinking step sizes. Richardson extrapolation then combines them, which cancels the leading error terms. This typically gives 10 to 12 correct significant digits. Where a derivative can be found symbolically, the derivative calculator shows the exact rule-by-rule working instead.
Limits
Limits are estimated from sequences of function values that approach the point from each side, improved by Richardson extrapolation. A limit is reported only when the two one-sided values agree to within about one part in a million. Otherwise the calculator says that the limit does not exist and gives the reason.
Roots of equations
The search interval is sampled at 4,000 points to find sign changes. Each root is then located with Brent’s method, which combines bisection, the secant method and inverse quadratic interpolation. Roots where the curve touches zero without crossing it are found with golden-section search. Sign changes caused by a pole, as in tan(x) or 1/x, are rejected.
Polynomial roots
Rational roots are found exactly where they exist. All remaining real and complex roots come from the Aberth–Ehrlich iteration, which refines every root at once. Each root is then polished with Newton’s method against the original polynomial.
Special functions and distributions
The gamma function uses the Lanczos approximation. The normal, binomial and Poisson distributions rely on the error function and the incomplete gamma and beta functions. These use power series and continued fractions, evaluated with the modified Lentz algorithm, and are accurate to about 14 significant digits. The inverse normal function starts from a rational approximation and is refined with Halley’s method.
Sums
The sum function uses compensated (Kahan) summation, and the statistics calculators use Neumaier’s improved version of it. Both stop rounding errors from building up over many terms. In the standard deviation calculator, adding 10,000 values loses no more accuracy than adding two.
Rounding and display rules
- Rounding happens only when a result is displayed, never in the middle of a calculation.
- By default, decimals show up to 10 significant digits and switch to scientific notation below 10⁻⁶ or at 10¹⁰ and above. The scientific calculator also offers fixed decimal places and scientific and engineering formats.
- The unit converter shows up to 12 significant digits. Its conversion factors are stored exactly as defined in NIST Handbook 44 and the SI Brochure.
- Rounding to a number of decimal places rounds half away from zero and is applied to the decimal value you see, so 2.675 rounded to two places is 2.68. Many programming languages give 2.67 here, because they round the nearest binary value instead.
- Impossible operations produce a message that explains the problem, such as a division by zero or a value outside a function’s domain, rather than a meaningless value such as "NaN".
How every calculator is tested
Each of the 68 calculators has its own automated tests, and the shared math library has more. The tests run before every release.
- Independent reference values. Results are compared with values worked out separately from ScientifiCalc’s own code. For example, statistics results are checked against exact fraction arithmetic in Python, trigonometric values of very large angles against Python’s math library, and date calculations against Python’s datetime module. Other references come from published tables and textbook examples.
- Edge cases. Tests cover ordinary inputs, boundary cases such as 0, 1 and negative numbers, extreme magnitudes, and invalid inputs that must produce a helpful message instead of a wrong number.
- Page contract checks. A separate test confirms that every calculator computes its default inputs and every example shown on its page without an error, rejects blank required fields with a message, has complete page content, and has no broken internal links.
- Unit data checks. Every unit conversion is tested for consistency and for round trips, so converting a value and converting it back returns the original.
Here is what one such check looks like. The integral of e^(−x²) from 0 to 1 has no formula in elementary functions, so the integral calculator has to compute it numerically. The exact value can be written with the error function as (√π / 2) · erf(1), which Python’s math library evaluates independently.
| Source | Value | Notes |
|---|---|---|
| ScientifiCalc integral calculator | 0.7468241328 | Shown to 10 significant digits; estimated error ± 7.9 × 10⁻¹³, from 1 subinterval |
| Independent reference: (√π / 2) · erf(1) in Python | 0.7468241328124269 | Computed outside ScientifiCalc |
| Agreement | All 10 displayed digits match | The estimated error is far smaller than the last displayed digit |
Check a result yourself
If a result surprises you, these quick checks usually show whether the problem is the input or the calculation. They take a minute and need no special tools.
- Put the answer back in. Substitute a root into the original equation with the scientific calculator. A true root gives 0, or a value within rounding of 0.
- Use a second method. Plot the function in the graphing calculator. Roots should sit where the curve crosses the x-axis, and the sign of an integral should match whether the area lies above or below the axis.
- Check the angle mode. A trigonometric answer that looks wrong is usually degrees entered in radian mode, or the reverse. See degrees vs radians.
- Check the units and the form of the input. A percentage typed as 5 where 0.05 is expected, or a value in the wrong unit, gives a correct answer to a different question.
- Compare the exact and decimal forms. Where a result is shown both as a fraction or root and as a decimal, the two should agree to the digits shown.
Who checks reported errors
Reported errors are reviewed by Hira Noor, the mathematician (BS in Mathematics) who writes ScientifiCalc’s guides, articles and user manual. More about who runs the site is on the about page.
Report the result
Use the contact page and choose "Report a calculation or content error", or email hello@scientificalc.com. Include the page address, the inputs you used, the result you got and the result you expected.
Independent check
The calculation is reproduced independently, outside ScientifiCalc, to confirm whether the result is wrong.
Correction
A confirmed error is fixed in the calculator or the text.
Visible update
The page’s last-updated date changes, so you can see when it was corrected.
Known limitations
- Floating-point results are limited to about 15 significant digits, and numbers beyond about 1.8 × 10³⁰⁸ overflow. Exact whole-number results such as
30!are not affected. - Numerical integration, differentiation and limits assume reasonably smooth behavior. Functions that oscillate extremely fast or have very narrow spikes can defeat any sampling method. The tools report an error when they detect the problem, but they cannot detect every case.
- Equation solving outside polynomials is numerical and searches a stated interval, so roots outside it are not found.
- The graphing calculator samples each function about 1.5 times per pixel of screen width, so it can miss features narrower than that.
- The currency converter uses the European Central Bank’s daily reference rates, which differ from the rates banks and card providers charge.
The calculation disclaimer explains when to confirm a result with an independent method or a qualified professional.