On this page
Every measurement you take in a physics practical is really a range. Taking the error as one least count, a ruler reading of 12.3 cm with a least count of 0.1 cm means the length lies somewhere between 12.2 cm and 12.4 cm. Interval arithmetic takes that seriously: instead of carrying one number and hoping, you carry both ends and let the rules tell you exactly how wide the answer can be.
What is interval arithmetic?
Interval arithmetic is a way of computing where each quantity is a closed range [a, b], and every operation returns a range that is certain to contain the true result. The rules are set out in the Wikipedia article on interval arithmetic, which credits Ramon E. Moore's 1966 book Interval Analysis with marking the birth of the modern subject.
The operations also have a standard of their own: IEEE 1788-2015, the IEEE Standard for Interval Arithmetic, published on 30 June 2015, "specifies basic interval arithmetic (IA) operations".
How do you add, subtract, multiply and divide intervals?
Take X = [x1, x2] and Y = [y1, y2]. The four rules, as given in the Wikipedia article, are:
Addition: X + Y = [x1 + y1, x2 + y2]. Smallest plus smallest, largest plus largest.
Subtraction: X − Y = [x1 − y2, x2 − y1]. To get the smallest difference, subtract the largest Y.
Multiplication: X · Y = [min, max] of the four products x1y1, x1y2, x2y1, x2y2. You need all four because negative endpoints can flip which product is largest.
Division: X / Y = X · [1/y2, 1/y1], allowed only when 0 is not inside Y.
Try it with X = [1, 3] and Y = [2, 4]: X + Y = [3, 7], X − Y = [−3, 1] and X · Y = [2, 12]. The hero diagram above draws these on a number line, along with X − X = [−2, 2].
Why is x − x not zero in interval arithmetic?
This is the dependency problem, which the Wikipedia article calls "a major obstacle" to using the method. Let x = [1, 2]. The subtraction rule gives x − x = [1 − 2, 2 − 1] = [−1, 1], not 0. The rules cannot tell that both copies are the same number, so they allow one copy to be 1 while the other is 2.
The same thing happens with x² + x on [−1, 1]. Squaring gives [0, 1], and adding x gives [−1, 2]. The true range is only [−1/4, 2]. The fix is algebra before arithmetic: write it as (x + 1/2)² − 1/4, so x appears once. Then x + 1/2 = [−1/2, 3/2], its square is [0, 9/4], and subtracting 1/4 gives exactly [−1/4, 2].
The lesson for exams and code alike: an interval answer is always safe, but it is only tight when each variable appears as few times as possible.
A worked example: speed from a tape and a stopwatch
You time a sprint over a track marked 100.0 m, accurate to 0.5 m, and the stopwatch reads 12.4 s, accurate to 0.1 s.
Write the ranges: distance d = [99.5, 100.5] m, time t = [12.3, 12.5] s.
Divide. The smallest speed is the shortest distance over the longest time: 99.5 / 12.5 = 7.96 m/s.
The largest speed is the longest distance over the shortest time: 100.5 / 12.3 = 8.1707… m/s.
Round outward, so the guarantee survives: lower end down, upper end up. Speed v = [7.96, 8.18] m/s.
Read it back: v is about 8.07 m/s, give or take 0.11 m/s.
Compare this with the relative-error rule you learn for Class 11 practicals: 0.5/100 + 0.1/12.4 is about 1.3%, which on 8.06 m/s is about 0.11 m/s. The two methods agree to within rounding, but the interval version needs no formula, only the question of which ends make the answer biggest and smallest. Outward rounding matters even more in a computer, as our explainer on why 0.1 + 0.2 is not 0.3 in floating point shows.
Where is interval arithmetic used?
The big use is verified computing: letting a computer produce results that count as proof. According to the Wikipedia article, Thomas Hales used interval arithmetic in his work on the Kepler conjecture, and Warwick Tucker used it to show that the Lorenz attractor is a strange attractor, settling the 14th of Smale's problems. Tucker's result appeared as The Lorenz attractor exists in Comptes Rendus de l'Académie des Sciences in 199980439-x).
Unlike Richardson extrapolation, which shrinks an error by cancelling it, intervals bound the error and, with outward rounding, never underestimate it.
To see where error analysis connects to the rest of your maths and physics, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing, each with its own lesson. Next time you write a lab result, carry the interval alongside it: you will know how far you can trust the answer.



