It follows that Using the trigonometric identity, the factor formula for sines specifically we get As an alternative to using the identity for the sum or difference of two sines, one may cite the trigonometric identity (see tangent half-angle formula).
In the time before electronic calculators were available, this method was preferable to an application of the law of cosines c = √a2 + b2 − 2ab cos γ, as this latter law necessitated an additional lookup in a logarithm table, in order to compute the square root.
In modern times the law of tangents may have better numerical properties than the law of cosines: If γ is small, and a and b are almost equal, then an application of the law of cosines leads to a subtraction of almost equal values, incurring catastrophic cancellation.
On a sphere of unit radius, the sides of the triangle are arcs of great circles.
Accordingly, their lengths can be expressed in radians or any other units of angular measure.
Let A, B, C be the angles at the three vertices of the triangle and let a, b, c be the respective lengths of the opposite sides.
The spherical law of tangents says[2] The law of tangents was discovered by Arab mathematician Abu al-Wafa in the 10th century.
[3] Ibn Muʿādh al-Jayyānī also described the law of tangents for planar triangles in the 11th century.
[4] The law of tangents for spherical triangles was described in the 13th century by Persian mathematician Nasir al-Din al-Tusi (1201–1274), who also presented the law of sines for plane triangles in his five-volume work Treatise on the Quadrilateral.
[4][5] A generalization of the law of tangents holds for a cyclic quadrilateral
.Then:[6] This formula reduces to the law of tangents for a triangle when