Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

A Finite Vector Broke Our Normalisation

Why a Correct Formula Can Lose Its Answer

BOTIE

Scientific software has long had to calculate with measurements far larger or smaller than everyday whole numbers. A finite computer representation must round values and limit their range. A useful final answer can therefore be lost in an intermediate operation that the format cannot store.

David Goldberg’s 1991 survey explained these practical problems for people building computer systems. It connected floating-point representation and rounding rules to failures in real calculations. In our NumPy example, float64 uses a fixed 64-bit format: a finite component can fit while its square exceeds the format’s range. That is overflow.

We only want a direction, so we can change the common scale before squaring. The geometry stays the same, and the products fit in a safer range. We will inspect that change one operation at a time, then test it on a new encoder output.

Sources for this history