Answer and Explanation:
No, they did not use a ruler to compute the values of trig functions. They used geometry to prove theorems about trigonometry, then used those results and ordinary computations involving addition, subtraction, multiplication, division, and square roots to determine the entries in trigonometric tables.
Claudius Ptolemy (85 C.E.–165) created the first trig tables that we know of, and he included proofs of the theorems he used. One of the main theorems he used is what is now called Ptolemy’s theorem.
In order to prove his sum and difference forumlas, Ptolemy first proved what we now call Ptolemy’s theorem.
Ptolemy’s theorem. The product of the diagonals of a cyclic quadrilateral is equal to the sum of the products of the opposite sides.
A cyclic quadrilateral is a quadrilateral inscribed in a circle as ABCD. Ptolemy’s theorem says:
AC ⋅ BD = AB ⋅ CD + AD ⋅ BC
When one of the diagonals (like ) is a diameter of the circle, that gives you a way to determine the trig functions for sum and differences of angles.
Sometimes, the sum and difference formulas for sine and cosine are still called Ptolemy’s formulas.
sin(α + β) = sin α cos β + cos α sin β
cos(α + β) = cos α cos β − sin α sin β
sin(α − β) = sin α cos β − cos α sin β
cos(α − β) = cos α cos β + sin α sin β
Ptolemy started with angles he knew the trig functions for. These included angles in various isosceles triangles: 45°-45°-90°, 60°-60°-60°, and 36°-72°-72°, the last one described by Euclid in Proposition IV.10. That gave him the trig functions for 36°, 60°, and 90°. Using half-angle formulas (mentioned by Hipparchus (190–120 B.C.E.), he could compute trig functions for half of those angles and a quarter of those angles. Then using the sum and difference formulas he computed the rest of the numbers in his trig table.
Hope this helps! :)