Al-Jayyani wrote the first treatise on spherical trigonometry, entitled The book of unknown arcs of a sphere, although earlier mathematicians, such as Menelaus of Alexandria, did have books that dealt with spherical trigonometry. Al-Jayyani's treatise "contains formulae for right-handed triangles, the general law of sines, and the solution of a spherical triangle by means of the polar triangle." This treatise later had a "strong influence on European mathematics", and his "definition of ratios as numbers" and "method of solving a spherical triangle when all sides are unknown" are likely to have influenced Regiomontanus.