The astronomers and surveyors of the eighteenth century had a problem in common. To determine a few quantities, such as the elements of a comet’s orbit or the flattening of the Earth, they made many observations, more than the number of unknowns. Each observation gave an equation, but the equations, because of small measurement errors, did not agree with one another: no values of the unknowns satisfied all of them at once. Which values should one choose?