Search topics and sections

A mathematical table is a list of values of a function (a rule that gives one output for each input) that someone has worked out in advance. You look a result up instead of calculating it. A table of logarithms, for example, lists the logarithm of each number in a range, and a table of sines does the same for angles.

Tables are very old. The oldest known table comes from the Sumerian city of Shuruppak, in what is now southern Iraq, and probably dates from about 2600 to 2500 BCE.[1][2]

Printed tables were the most important aid to calculation for several hundred years, until the 1960s. Electronic calculators and computers have since replaced most of them.[1]

What a table contains

A table pairs inputs with outputs. The left column lists input values at a fixed step, such as every 0.01. The other columns give the function's value for each input, rounded to a set number of digits.

The step and the number of digits decide how useful a table is:

  • A smaller step means more rows and a thicker book.
  • More digits mean more work for the people who compute the table.

Many tables print only part of each value to save space. In a table of common logarithms (base 10), the logarithm of a number has two parts:[3]

  • The characteristic is the whole-number part. It is the power of 10 when the number is written in scientific notation (a number from 1 to 10 times a power of 10), so no table is needed for it.
  • The mantissa is the part after the decimal point. This is the part the table lists.

For example, 23.78=2.378×10123.78 = 2.378 \times 10^1, so the characteristic of log⁡23.78\log 23.78 is 1. The table supplies the mantissa 0.3762, so log⁡23.78=1.3762\log 23.78 = 1.3762.[3]

The word mantissa is often credited to Henry Briggs in 1624, but this appears to be wrong. John Wallis used it in 1693, and Leonhard Euler used both terms for the parts of a logarithm in 1748.[4]

One row of a four-figure common logarithm tableN0123456789Mean differences123456789222324361736363655367436923711372937473766378415log 23.78: characteristic 1, mantissa 0.3747 + 0.0015 = 0.3762,so log 23.78 = 1.3762
Row 23 of a four-figure common logarithm table. The entry 3747 in column 7 plus the mean difference 15 under 8 gives the mantissa 0.3747+0.0015=0.37620.3747 + 0.0015 = 0.3762, so log⁡23.78=1.3762\log 23.78 = 1.3762.

Using a table

Looking up a value

A four-figure log table is laid out as a grid.[3] The row label gives the first two digits of the number, and the column heading gives the third digit. A set of small "mean difference" columns on the right gives the amount to add for a fourth digit.

To find the mantissa for 23.78:[3]

  1. Go to row 23 and column 7. The entry is 3747.
  2. In the mean difference columns of the same row, read the entry under 8. It is 15.
  3. Add them: 3747 + 15 = 3762. The mantissa is 0.3762.

Multiplying with logarithms

Log tables turn multiplication into addition. This works because, for positive numbers xx and yy,

log⁡(xy)=log⁡x+log⁡y\log(xy) = \log x + \log y

You look up the two logarithms, add them, and then look up the number whose logarithm is the sum.[5] For example, to multiply 23.78 by 4.572 with a four-figure table:

  1. Look up log⁡23.78=1.3762\log 23.78 = 1.3762 and log⁡4.572=0.6601\log 4.572 = 0.6601.[3]
  2. Add them to get 2.0363.
  3. Read the table in reverse. The mantissa 0.0363 belongs to 1.087, and the characteristic 2 moves the decimal point two places, so the product is about 108.7.

The exact product is 108.72216, so the four-figure answer is correct to four figures.

John Napier gave this use as his reason for inventing logarithms. He wrote that long multiplications and divisions were slow and "subject to many slippery errors".[6]

Multiplying two numbers with logarithm tables 23.78 4.572 1.3762 0.6601 add 2.0363 108.7 look up log look up log log(xy) = log x + log y look up in reverse (antilog) exact: 108.72216
To multiply 23.78×4.57223.78 \times 4.572 with a table, look up the base 10 logarithms 1.37621.3762 and 0.66010.6601, add them to get 2.03632.0363, and look up its antilogarithm to get 108.7108.7. This works because log⁡(xy)=log⁡x+log⁡y\log(xy) = \log x + \log y. The exact product is 108.72216108.72216.

Reading between entries

When an input falls between two rows of a table, the reader must estimate its value. Estimating a value between entries is called interpolation. The simplest kind, linear interpolation, treats the function as a straight line between the two neighbouring entries.

Suppose the table lists f0=f(x0)f_0 = f(x_0) and f1=f(x0+h)f_1 = f(x_0 + h), where hh is the step. For an input a fraction tt of the way from one row to the next,[7]

f(x0+th)≈(1−t) f0+t f1,0<t<1f(x_0 + th) \approx (1-t)\,f_0 + t\,f_1, \qquad 0 < t < 1

For a function with a second derivative f′′f'' (the rate at which its slope changes), the error of this estimate is at most[7]

18 h2 ∣f′′(ξ)∣\tfrac{1}{8}\,h^2\,|f''(\xi)|

for some point ξ\xi between x0x_0 and x0+hx_0 + h. The error grows with the square of the step, so halving the step cuts this bound by a factor of four.

Linear interpolation between two table entries x f(x) f₀ f₁ true value error (exaggerated) interpolated value th x₀ x₀ + th x₁ h
Linear interpolation estimates f(x0+th)f(x_0 + th) by reading the straight line segment that joins the table entries f0f_0 and f1f_1, here at t=0.2t = 0.2. Because the curve bends downward, the interpolated value falls a little below the true value, and that gap is the interpolation error.

As an example, five-figure tables give log⁡3.54=0.54900\log 3.54 = 0.54900 and log⁡3.55=0.55023\log 3.55 = 0.55023. The number 3.542 lies t=0.2t = 0.2 of the way along, so log⁡3.542≈0.54900+0.2×0.00123=0.54925\log 3.542 \approx 0.54900 + 0.2 \times 0.00123 = 0.54925. That matches the true value to five decimal places.

Table makers built aids for interpolation into their tables:

  • Ptolemy's chord table, with entries every half degree, has a column of "sixtieths" giving one thirtieth of the step between neighbouring chords.[8] Since half a degree is 30 minutes of arc, this is the change per minute.
  • Four-figure log tables have mean difference columns that give the change for each extra digit.[3]
  • High-precision handbooks such as Abramowitz and Stegun tell readers to interpolate through several table points (Lagrange interpolation) for full accuracy.[9]

Using more table points

Using several neighbouring entries can give a more accurate estimate than two. The degree of a polynomial is the highest power of the variable in it, so x2+4x^2 + 4 has degree 2. Through n+1n+1 points with different inputs x0,…,xnx_0, \dots, x_n there is exactly one polynomial of degree at most nn that passes through all of them. It is called the Lagrange interpolation polynomial:[7]

Pn(x)=∑k=0nℓk(x) fk,ℓk(x)=∏j≠kx−xjxk−xjP_n(x) = \sum_{k=0}^{n} \ell_k(x)\,f_k, \qquad \ell_k(x) = \prod_{j \ne k} \frac{x - x_j}{x_k - x_j}

Here fkf_k is the table value at xkx_k, and each ℓk(x)\ell_k(x) equals 1 at xkx_k and 0 at the other inputs.

For entries spaced a step hh apart, the error Rn,tR_{n,t} at the input x0+thx_0 + th is bounded by[7]

∣Rn,t∣≤cn hn+1 ∣f(n+1)(ξ)∣|R_{n,t}| \le c_n\,h^{n+1}\,|f^{(n+1)}(\xi)|

Here f(n+1)f^{(n+1)} is the (n+1)(n+1)th derivative, ξ\xi is a point within the range of the points used, and cnc_n is a number that depends on nn and on the range of tt. For two points (n=1n = 1), c1=18c_1 = \tfrac18, which gives the linear bound above.[7]

More points do not always help. A polynomial through many points has a high degree and can swing up and down between them, so it may predict the function poorly even though it matches every table value exactly.[10]

Abramowitz and Stegun print a short bracketed hint at the foot of many table columns. In the logarithm table for inputs from 1.750 to 1.800, it says linear interpolation is accurate to better than 4×10−84 \times 10^{-8}, and that full 15-figure accuracy needs Lagrange interpolation through 5 points.[9]

Kinds of tables

In the early 19th century, mathematicians, navigators, engineers, surveyors and bankers relied on printed tables for any calculation that needed more than a few figures of accuracy.[11] The main kinds are compared below.

Kind What it lists Example
Arithmetic Products, squares, fractions, and reciprocals (numbers that multiply by the original to give 1) Old Babylonian multiplication and reciprocal tables[12]
Trigonometric Chords (straight lines joining two points on a circle), sines and other trigonometric ratios Ptolemy's table of chords[8]
Logarithmic Logarithms of numbers and of trigonometric values Briggs's Arithmetica Logarithmica (1624)[13]
Special functions Values of advanced functions used in physics and engineering Mathematical Tables Project volumes, including Bessel functions[14]
Number theory Indices: exponents that act as logarithms in clock arithmetic (arithmetic where numbers wrap around after a fixed value) Canon arithmeticus (1839)[15]
Random numbers Digits with no pattern, for sampling and simulation A Million Random Digits (1955)[16]
Navigation and astronomy Positions and values needed at sea Tables for finding longitude by the lunar distance method[17]
School handbooks Formulas and data tables for students The Finnish MAOL table book[18]

Making a table

The method of differences

Human computers often built tables with the method of finite differences, which needs only addition and subtraction.[11] You take differences between neighbouring values, then differences of those differences. For a polynomial of degree nn, the nnth differences are constant.[19]

For example, take f(x)=x2+4f(x) = x^2 + 4, whose values at x=1x = 1 to 4 are 5, 8, 13 and 20.[19]

  1. The first differences are 3, 5 and 7.
  2. The second differences are 2 and 2, a constant.
  3. To extend the table, add the constant 2 to the last first difference (7) to get 9.
  4. Add 9 to the last value (20) to get f(5)=29f(5) = 29. Repeating gives f(6)=40f(6) = 40.
Difference table for f(x) = x squared plus 4xf(x)1st difference2nd difference12345658132029403579112222only additions needed
Difference table for f(x)=x2+4f(x) = x^2 + 4. Given values sit above the dashed line. Because the second difference stays at 2, adding 2+7=92 + 7 = 9 and then 9+20=299 + 20 = 29 extends the table to x=5x = 5, and the same steps give f(6)=40f(6) = 40.

Logarithms and trigonometric functions are not polynomials. Polynomials can approximate them, though, so the same method served for these tables too.[17]

Dividing the work

Large tables were made by splitting the work into simple steps for many workers. In 1792, Gaspard de Prony began a huge set of logarithmic and trigonometric tables in France with 70 to 80 assistants. The work was finished in 1801.[20]

Prony's tables had these features:[20]

  • They gave values to between 14 and 29 decimal places, in 18 large-format volumes plus a volume of methods.
  • They used a "division of labour", which his publisher praised for reducing most of the work to simple additions and subtractions.
  • They were too expensive to print and were never published in full.

The Mathematical Tables Project in New York used the same idea from 1938.[14] It was led by Arnold Lowan, with Gertrude Blanch as chief mathematician. At its peak it had about 450 staff, most of whom only added, and it produced 37 volumes of tables.[14]

Errors

Hand-made tables often contained mistakes. These came from calculation and from copying, setting type and printing.[11] The astronomer John Herschel wrote in 1842 that "an undetected error in a logarithmic table is like a sunken rock at sea".[17]

These errors led Charles Babbage to design machines that would compute and print tables. In 1821 he began the Difference Engine No. 1, which was designed to use the method of differences and print its results automatically.[21] Neither of his difference engines was built in his lifetime. The Science Museum in London completed a Difference Engine No. 2 from his 1847 to 1849 design in 2002.[11]

History

Timeline of mathematical tables c. 2600 to 2500 BCEShuruppak squares c. 2000 BCEBabylonian tables c. 1650 BCERhind papyrus 2/n 2nd century CEPtolemy's chords 1614Napier's logarithms 1624Briggs, Arithmetica 1792 to 1801de Prony's tables 1821Babbage engine 1839Jacobi's Canon 1938Math Tables Project 1955RAND random digits 1964Abramowitz, Stegun 1972HP-35 calculator 2010NIST DLMF Ancient Logarithm era Machine era Electronic era
Key mathematical tables from the Shuruppak table of square areas (c. 2600 to 2500 BCE) to the NIST Digital Library of Mathematical Functions (2010), grouped into ancient, logarithm, machine and electronic eras. The timeline is not to scale, and zigzags mark the breaks between eras.

Ancient tables

The oldest known tables come from Shuruppak and probably date from about 2600 to 2500 BCE.[2] One, known as VAT 12593, lists the areas of square fields with sides of decreasing length.[2]

In the Old Babylonian period, around 2000 BCE, scribes used multiplication tables and tables of reciprocals.[12] They divided by a number by multiplying by its reciprocal, and they wrote numbers in base 60, the sexagesimal system.[12] See Babylonian mathematics.

In Egypt, the Rhind Mathematical Papyrus was copied around 1650 BCE.[22] It opens with the 2/n table, which writes 2 divided by each odd number from 3 to 101 as a sum of unit fractions (fractions with numerator 1), such as 1/4 + 1/28.[22] These sums are now called Egyptian fractions.

In the 2nd century CE, Ptolemy included a table of chords in the Almagest, based largely on earlier work by Hipparchus.[8] It gives the length of the chord for each angle up to 180° in half-degree steps, in a circle whose diameter is 120 units.[8] Because crd⁡θ=120sin⁡(θ/2)\operatorname{crd}\theta = 120\sin(\theta/2) in this circle, the table is the same as a table of sines for angles up to 90° in quarter-degree steps.[8]

Chord of a circle in Ptolemy's table O A B 60 θ θ/2 θ/2 crd θ 60 sin(θ/2) crd θ = 120 sin(θ/2)
In Ptolemy's table a chord is measured in a circle of radius 60. The line from the centre that meets the chord at a right angle cuts it in half, so crd⁡θ=120sin⁡(θ/2)\operatorname{crd}\theta = 120\sin(\theta/2).

Logarithm tables

Napier published his logarithms in 1614 in Mirifici logarithmorum canonis descriptio.[6] His logarithms were not to base 10. Napier and Briggs agreed that new tables should use base 10, with the logarithm of 1 equal to 0.[13]

Briggs's Arithmetica Logarithmica (1624) gave logarithms of the numbers 1 to 20,000 and 90,000 to 100,000, to 14 decimal places.[13] Adriaan Vlacq filled the gap from 20,000 to 90,000 in an edition printed at Gouda in 1628.[13] Printed tables then remained the most important computing aid for several hundred years, until the 1960s.[1]

Index tables

Carl Gustav Jacob Jacobi's Canon arithmeticus (1839) gave tables of indices for each prime below 1000, followed by tables for prime powers below 1000.[15] A prime is a whole number greater than 1 whose only divisors are 1 and itself. A prime power is a prime raised to a whole-number power, such as 323^2.

Indices are taken with respect to a primitive root. The statement gk≡a(modm)g^k \equiv a \pmod{m} means that gkg^k and aa leave the same remainder when divided by mm. A primitive root modulo mm is a number gg whose powers, taken this way, give every number below mm that shares no factor other than 1 with mm.[23]

The index of a number aa is the exponent kk with gk≡a(modm)g^k \equiv a \pmod{m}. For example, 3 is a primitive root modulo 10, since 31,32,33,343^1, 3^2, 3^3, 3^4 leave remainders 3, 9, 7 and 1, so the index of 7 is 3.[23] The index is also called a discrete logarithm, since it plays the role of a logarithm in modular arithmetic.[23]

Not every modulus has a primitive root. Among powers of 2, only 2 and 4 have one.[23] Jacobi noted that for moduli of the form 2n2^n the odd numbers cannot all be written as powers of one number, and he added separate tables for these moduli below 1000.[15]

Random digits

The RAND Corporation produced A Million Random Digits with 100,000 Normal Deviates, which The Free Press first published in 1955.[24] Its digits came from an electronic roulette wheel and were produced in 1947.[16] The book was made for Monte Carlo calculations on punched-card machines.[16]

The 1964 handbook

In 1964, the National Bureau of Standards, now NIST, published the Handbook of Mathematical Functions, edited by Milton Abramowitz and Irene Stegun.[25] It ran to 1,046 pages and became the most widely distributed and most cited NIST publication in the institution's first 100 years.[25]

Decline

Computers did not end the use of tables at once. A 1954 conference that led to the Abramowitz and Stegun handbook agreed that tables would still be needed, even with large computers available.[26] It saw tables as tools for first surveys of a problem and for people without access to machines.[26]

Handheld calculators removed most of that need. The HP-35 of 1972 was the first handheld calculator to compute logarithms and trigonometric functions.[27] Its maker advertised that it "eliminates the need to refer to log or trig tables".[28]

In 2010, NIST released the Digital Library of Mathematical Functions, the successor to Abramowitz and Stegun.[29] It dropped the long tables of function values, which NIST called "a necessity before the advent of desktop computers".[29]

Tables in computing today

The idea of a table lives on inside computers. A lookup table stores results worked out in advance so a program can read them instead of computing them, trading memory for speed.[5] Log tables, for example, are still used in some computing to replace costly multiplications with lookups and additions.[5]

Interpolation also survives. Computers sometimes evaluate a function by interpolating between stored values, just as human readers once did with printed tables.[9]

References

  1. The History of Mathematical Tables: From Sumer to Spreadsheets, Oxford University Press, 2003.
  2. Early-Dynastic tables from Southern Mesopotamia, or the multiple facets of the quantification of surfaces, HAL open archive, 2020.
  3. How to Use Log Table?, Cuemath, 2024.
  4. Earliest Known Uses of Some of the Words of Mathematics (M), Jeff Miller, MacTutor History of Mathematics, University of St Andrews.
  5. Logarithms, Julius O. Smith III, Mathematics of the Discrete Fourier Transform, CCRMA, Stanford University, 2007.
  6. John Napier (1550 - 1617) - Biography, MacTutor History of Mathematics, University of St Andrews, 2003.
  7. §3.3 Interpolation, NIST Digital Library of Mathematical Functions, 2024.
  8. Ptolemy's Table of Chords: Trigonometry in the Second Century, The Physics Hypertextbook (E-World), 1997.
  9. Using a table of logarithms, John D. Cook, 2024.
  10. Lagrange Interpolating Polynomial, Eric W. Weisstein, MathWorld, Wolfram Research.
  11. Charles Babbage's Difference Engines and the Science Museum, Science Museum, 2023.
  12. Old Babylonian Multiplication and Reciprocal Tables, Tony Phillips, Stony Brook University, 2012.
  13. Henry Briggs (1561 - 1630) - Biography, MacTutor History of Mathematics, University of St Andrews, 2003.
  14. Prehistory: The Math Tables Project, NIST, 2022.
  15. Canon arithmeticus, sive tabulae quibus exhibentur pro singulis numeris primis vel primorum potestatibus infra 1000 numeri ad datos indices et indices ad datos numeros pertinentes (full text), C. G. J. Jacobi, Berlin, Typis Academicis (Internet Archive scan), 1839.
  16. A Million Random Digits with 100,000 Normal Deviates, RAND Corporation, 2001.
  17. Charles Babbage's Difference Engine, Whipple Museum of the History of Science, University of Cambridge.
  18. MAOL-taulukot, Otava, 2019.
  19. How it Works, Babbage Engine, Computer History Museum.
  20. Gaspard de Prony (1755 - 1839) - Biography, MacTutor History of Mathematics, University of St Andrews.
  21. The Engines, Babbage Engine, Computer History Museum.
  22. The Rhind 2÷n table and fraction reckoning in ancient Egypt, Thomas Blasselle and Cédric Gaucherel, HAL open archive, 2017.
  23. Primitive Roots, Indices and the Discrete Logarithm, Neil Donaldson, Math 180B lecture notes, University of California, Irvine.
  24. A Million Random Digits with 100,000 Normal Deviates: Introduction, RAND Corporation, 2001.
  25. Foreword, NIST Digital Library of Mathematical Functions, 2010.
  26. Handbook of Mathematical Functions, Preface, National Bureau of Standards, 1964.
  27. Milestones: Development of the HP-35, the First Handheld Scientific Calculator, 1972, IEEE Engineering and Technology History Wiki.
  28. The Hewlett-Packard HP-35 Scientific Pocket Calculator (brochure), Hewlett-Packard, 1972.
  29. NIST Releases Successor to Venerable Handbook of Math Functions, NIST, 2010.

Figure