On Sizes and Distances [of the Sun and Moon] (Περὶ μεγεθῶν καὶ ἀποστημάτων  Peri megethon kai apostematon) is a text by the ancient Greek astronomer Hipparchus. It is not extant, but some of its contents have been preserved in the works of Ptolemy and his commentator Pappus of Alexandria. Several modern historians have attempted to reconstruct the methods of Hipparchus using the available texts.
Contents 
Most of what is known about Hipparchus' text comes from two ancient sources: Ptolemy and Pappus. The work is also mentioned by Theon of Smyrna and others, but their accounts have proven less useful in reconstructing the procedures of Hipparchus.
In Almagest V, 11, Ptolemy writes:
This passage gives a general outline of what Hipparchus did, but provides no details. Ptolemy clearly did not agree with the methods employed by Hipparchus, and thus did not go into any detail.
The works of Hipparchus were still extant when Pappus wrote his commentary on the Almagest in the 4th century. He fills in some of the details that Ptolemy omits:
Then later,
This passage provides enough details to make a reconstruction feasible. In particular, it makes clear that there were two separate procedures, and it gives the precise results of each. It provides clues with which to identify the eclipse, and says that Hipparchus used a formula "as in Theorem 12," a theorem of Ptolemy's which is extant.
Several historians of science have attempted to reconstruct the calculations involved in On Sizes and Distances. The first attempt was made by Friedrich Hultsch in 1900, but it was later rejected by Noel Swerdlow in 1969. G. J. Toomer expanded on his efforts in 1974.
Friedrich Hultsch determined in a 1900 paper that the Pappus source had been miscopied, and that the actual distance to the sun, as calculated by Hipparchus, had been 2490 earth radii (not 490). As in English, there is only a single character difference between these two results in Greek.
His analysis was based on a text by Theon of Smyrna which states that Hipparchus found the sun to be 1880 times the size of the earth, and the earth 27 times the size of the moon. Assuming that this refers to volumes, it follows that
and
Assuming that the sun and moon have the same apparent size in the sky, and that the moon is 67 1/3 earth radii distant, it follows that
This result was generally accepted for the next seventy years, until Noel Swerdlow reinvestigated the case.
Swerdlow determined that Hipparchus relates the distances to the sun and moon using a construction found in Ptolemy. It would not be surprising if this calculation had been originally developed by Hipparchus himself, as he was a primary source for the Almagest.
Using this calculation, Swerdlow was able to relate the two results of Hipparchus (67 1/3 for the moon and 490 for the sun). Obtaining this relationship exactly requires following a very precise set of approximations.
Using simple trigonometric identities gives
and
By parallel lines and taking t = 1, we get
By similarity of triangles,
Combining these equations gives
The values which Hipparchus took for these variables can be found in Ptolemy's Almagest IV, 9. He says Hipparchus found that the moon measured its own circle close to 650 times, and that the angular diameter of earth's shadow is 2.5 times that of the moon. Pappus tells us that Hipparchus took the mean distance to the moon to be 67 1/3. This gives:
Quantity  Value 

θ  
L  67 1/3 
According to Swerdlow, Hipparchus now evaluated this expression with the following roundings (the values are in sexagesimal):
and
Then, because
it follows that
Swerdlow used this result to argue that 490 was the correct reading of the Pappus text, thus invalidating Hultsch' interpretation. While this result is highly dependent on the particular approximations and roundings used, it has generally been accepted. It leaves open, however, the question of where the lunar distance 67 1/3 came from.
Following Pappus and Ptolemy, Swerdlow suggested that Hipparchus had estimated 490 earth radii as a minimum possible distance to the sun. This distance corresponds to a solar parallax of 7', which may have been the maximum that he thought would have gone unnoticed (the typical resolution of the human eye is 2'). The formula obtained above for the distance to the sun can be inverted to determine the distance to the moon:
Using the same values as above for each angle, and using 490 earth radii as the minimum solar distance, it follows that the maximum mean lunar distance is
Toomer expanded on this by observing that as the distance to the sun increases without bound, the formula approaches a minimum mean lunar distance:
This is close to the value later claimed by Ptolemy.
In addition to explaining the minimum lunar distance that Hipparchus achieved, Toomer was able to explain the method of the first book, which employed a solar eclipse. Pappus states that this eclipse was total in the region of the Hellespont, but was observed to be 4/5 of total in Alexandria.
If Hipparchus assumed that the sun was infinitely distant (i.e. that "the earth has the ratio of a point and center to the sun"), then the difference in magnitude of the solar eclipse must be due entirely to the parallax of the moon. By using observational data, he would be able to determine this parallax, and hence the distance of the moon.
Hipparchus would have known and , the latitudes of Alexandria and the Hellespontine region, respectively. He also would have known δ, the declination of the moon during the eclipse, and μ, which is related to the difference in totality of the eclipse between the two regions.
Crd here refers to the Chord function. Since the moon is very distant, it follows that . Using this approximation, we have
Hence,
With AH and θ, we only need μ to get D'. Because the eclipse was total at H, and 4/5 total at A, it follows that μ is 1/5 of the apparent diameter of the sun. This quantity was well known by Hipparchushe took it to be 1/650 of a full circle. The distance from the center of the earth to the moon then follows from .
Toomer determined how Hipparchus determined the chord for small angles (see Chord (geometry)). His values for the latitudes of the Hellespont (41 degrees) and Alexandria (31 degrees) are known from Strabo's work on Geography. To determine the declination, it is necessary to know which eclipse Hipparchus used.
Because he knew the value which Hipparchus eventually gave for the distance to the moon (71 earth radii) and the rough region of the eclipse, Toomer was able to determine that Hipparchus used the eclipse of March 14, 190 BC. This eclipse fits all the mathematical parameters very well, and also makes sense from a historical point of view. The eclipse was total in Nicaea, Hipparchus' birthplace, so he may have heard stories of it. There is also an account of it in Strabo's Ab Urbe Condita VIII.2. The declination of the moon at this time was . Hence, using chord trigonometry, we have
Now using Hipparchus' chord tables,
and hence
This agrees very well with the value of 71 earth radii that Pappus reports.
This analysis assumed that the eclipse took place in the middle of the day, with the sun and moon on the meridian. But this was not the case for the eclipse of 190 BC, which took place
Assuming that these reconstructions accurately reflect what Hipparchus wrote in On Sizes and Distances, then this work was a remarkable accomplishment. This approach of setting limits on an unknown physical quantity was not new to Hipparchus (see Aristarchus of Samos. Archimedes also did the same with pi), but in those cases, the bounds reflected the inability to determine a mathematical constant to an arbitrary precision, not uncertainty in physical observations.
Hipparchus appears to have eventually resolved the contradiction between his two results. His aim in calculating the distance to the moon was to obtain an accurate value for the lunar parallax, so that he might predict eclipses with more precision. To this, he had to settle on a particular value for the distance/parallax, not a range of values.
There is some evidence that he did this. Combining the calculations of Book 2 and the account of Theon of Smyrna yields a lunar distance of 60.5 earth radii. Doing the same with the account of Cleomedes yields a distance of 61 earth radii. These are remarkably close to both Ptolemy's value and the modern one.
According to Toomer,

