What is a hyperbolic triangle?
A hyperbolic triangle is a triangle in the hyperbolic plane, a surface of constant negative curvature \(-1/k^2\), where k is the radius of curvature. Its sides a, b, c are segments of geodesics (the straight lines of that plane) and its angles A, B, C always add up to less than 180 degrees.
This calculator finds the three angles from the three sides, or the three sides from the three angles, together with the angle sum, the angle defect, the area and the perimeter.
How to use it
Choose what you know in What do you know?, enter the radius of curvature k (1 for the standard hyperbolic plane) and then the three sides or the three angles in degrees. The values you enter are shown back unchanged and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes very large and very small values out in full.
Derivation of the formulas
Write \(\hat a = a/k\) and so on. The hyperbolic law of cosines replaces the circular functions of the sides on a sphere by hyperbolic ones:
$$\cosh\hat a = \cosh\hat b\cosh\hat c - \sinh\hat b\sinh\hat c\cos A, \qquad \cos A = -\cos B\cos C + \sin B\sin C\cosh\hat a$$For numbers the calculator uses the half-angle form, with \(s = (\hat a + \hat b + \hat c)/2\),
$$\tan\frac{A}{2} = \sqrt{\frac{\sinh(s - \hat b)\sinh(s - \hat c)}{\sinh s\,\sinh(s - \hat a)}}$$evaluated through logarithms so that very long sides do not overflow, and from the angles, with \(\Sigma = (A + B + C)/2\),
$$\sinh^2\frac{\hat a}{2} = \frac{\cos\Sigma\,\cos(\Sigma - A)}{\sin B\sin C}$$The angles add up to less than 180°; the shortfall \(\delta = \pi - (A + B + C)\) is the angle defect, and by the Gauss-Bonnet theorem the area is
$$A_{\triangle} = k^2\left(\pi - A - B - C\right)$$From the sides the defect comes from the hyperbolic form of L'Huilier's formula, \(\tan\frac{\delta}{4} = \sqrt{\tanh\frac{s}{2}\tanh\frac{s - \hat a}{2}\tanh\frac{s - \hat b}{2}\tanh\frac{s - \hat c}{2}}\). No hyperbolic triangle has an area of \(\pi k^2\) or more, however long its sides.
Worked example
The default is a triangle with sides 1, 1.5 and 2 in the hyperbolic plane with k = 1. Its angles are about 18.879226°, 35.892462° and 93.029258°, so the angle defect is about 32.199054° and the area is about 0.56198 square units.
FAQ
Why is the area limited?
The area equals \(k^2\) times the angle defect, and the defect can never reach 180°, so every hyperbolic triangle has an area below \(\pi k^2\).
Are similar triangles possible?
No. In the hyperbolic plane the three angles fix the triangle completely, including its size.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000 and each angle from 0.000001 to 179.999999 degrees. Anything outside is refused with a message naming the range.
References
J. W. Anderson, Hyperbolic Geometry, 2nd ed., Springer, 2005
J. G. Ratcliffe, Foundations of Hyperbolic Manifolds, 2nd ed., Springer, 2006