Chords were used extensively in the early development of trigonometry. The first known trigonometric table, compiled by Hipparchus, tabulated the value of the chord function for every 7.5 degrees. In the second century AD, Ptolemy of Alexandria compiled a more extensive table of chords in his book on astronomy, giving the value of the chord for angles ranging from 1/2 degree to 180 degrees by increments of half a degree. The circle was of diameter 120, and the chord lengths are accurate to two base-60 digits after the integer part. The chord function is defined geometrically as in the picture to the left. The chord of an angle is the length of the chord between two points on a unit circle separated by that angle. The chord function can be related to the modern sine function, by taking one of the points to be (1,0), and the other point to be (cos , sin ), and then using the Pythagorean theorem to calculate the chord length:
The last step uses the half-angle formula. Much as modern trigonometry is built on the sine function, ancient trigonometry was built on the chord function.
The chord function satisfies many identities analogous to well-known modern ones: