Workbench / Mathematics Book 1 Exercises: Arithmetic and Numbers
B1·11
Estimation, Rounding, Error and Units
Exercises for chapter 11: estimating before calculating, Fermi estimates, significant figures against decimal places, rounding rules and their bias, double rounding, absolute and relative error, how errors grow, units as factors, area and volume conversions, mixed units, a significant-figure rounder, interval arithmetic, a run log in minutes and seconds, an electricity bill checked by estimate, a recipe converter that knows mass from volume, and senior exercises on rounding policy for money, units in data, and order-of-magnitude sanity checks.
Start here: how these exercises work
Write your answer in the box first; hints open one at a time as you write, and the solution a couple of minutes after the last hint. Theory is in your own words, practice and programs come with real output (Python 3.13), cumulative projects use chapters 1 to 11 together, what the chapter leaves out explains what it skips, and senior exercises put the ideas into designs and reviews.
Theory
T1. Why estimate first
A colleague says estimating is pointless when a calculator gives the exact answer. Give two kinds of mistake an estimate catches and a calculator doesn't, and one kind it won't catch.
T2. Decimal places or significant figures?
Say which suits each, and why: (a) a price in rupees; (b) the population of a country; (c) the mass of a grain of rice; (d) a percentage change in a newspaper.
T3. Why banker's rounding?
Explain why rounding halves always upward biases a total, and how rounding halves to even removes the bias. Why don't shops usually use it?
T4. How errors combine
Explain in words why absolute errors add when measurements are added, but relative errors add when they're multiplied. Use a rectangle measured as by .
T5. Converting with fractions equal to one
Convert 1.5 m² to cm² and 250 cm³ to litres, writing each conversion factor as a fraction equal to one. Explain why 1.5 m² is not 150 cm².
T6. Durations and clock times
Explain why you can add 2 h 45 min to 1 h 30 min, and add 1 h 30 min to 2:45 pm, but not add 2:45 pm to 1:30 pm. What's the result of subtracting two clock times?
Practice and programs
P1. By hand
(a) Estimate . (b) Round 0.000 708 49 to 2 significant figures and 999.96 to 3 significant figures. (c) A length is cm; give the relative error. (d) Convert 108 km/h to m/s and 1 acre (4,046.86 m²) to hectares. (e) A film starts at 6:50 pm and lasts 2 h 35 min. When does it end?
P2. Significant figures, exactly
Write sig(x, k) and places(x, k) with Python's decimal, using a named rounding rule. Test numbers with leading zeros, negatives, and 99.96, which rounds into a new digit.
P3. Interval arithmetic
Write a class for ranges with , , , , and use it on a room's perimeter and area, a speed from a distance and a time, and the difference of two close readings. Make division refuse a range that includes zero.
P4. A run log in minutes and seconds
Lap times are written "5:12" (minutes:seconds per km). Compute the total, the average pace and the speed in km/h, validate the input, and show the mistake of reading 5:12 as 5.12 minutes.
Cumulative projects (chapters so far: 01–11)
C1. Checking an electricity bill
From two meter readings, estimate the bill (chapter 11), then compute it exactly with slab rates (chapter 8's rates, applied piece by piece), a fixed charge and a percentage duty (chapter 7), and round once to the rupee. Explain how an estimate would expose a reading or unit mistake. (The rates are illustrative; real tariffs vary by state and change.)
C2. A recipe converter that knows mass from volume
Convert a recipe's cups, tablespoons and grams to grams. Cups and spoons are volumes; grams are mass. Use a density for each ingredient and refuse to convert when none is known.
What the chapter leaves out
Standard deviation and typical error
Worst-case errors (adding the bounds) are pessimistic. When errors are independent and random, they combine roughly like the square root of the sum of their squares: two independent ±1 cm errors give about ±1.4 cm, not ±2. This is the basis of measurement uncertainty in science (the Guide to the Expression of Uncertainty in Measurement), and statistics (beyond this book) develops it.
Benford's law
In many real data sets (populations, prices, river lengths), numbers start with 1 about 30 % of the time and with 9 under 5 % of the time, because they spread over many orders of magnitude evenly on a logarithmic scale (chapter 10). The leading digit's frequency is . Auditors use departures from it as a signal of fabricated figures.
Floating-point rounding
Every floating-point operation rounds its exact result to the nearest representable value, half even by default (IEEE 754). The relative error of each step is at most in double precision, and error analysis bounds how these accumulate, the field of numerical analysis.
Units in code
Some languages and libraries carry units in their types (F#'s units of measure, Python's pint), so adding metres to seconds is an error before the program runs. The Mars Climate Orbiter loss is the standard argument for them.
Senior exercises
S1. A rounding policy for tax
An invoicing system rounds each line's 18 % tax to the paisa. Measure the effect over 200,000 lines of half up against half even, and write the policy you'd recommend.
S2. Units in data
A storage service accepts sizes as text ("1.5 GB", "512 KiB") from configuration files written by many teams. Write a parser that converts to bytes exactly, and decide what to refuse.
S3. Sanity checks by order of magnitude
An order-processing pipeline receives amounts from several upstream systems. One sends paise instead of rupees; another has divided by 1,000. Design a check that catches such errors without false alarms on genuinely large orders.