Heron's formula is a special case of
Brahmagupta's formula for the area of a
cyclic quadrilateral. Heron's formula and Brahmagupta's formula are both special cases of
Bretschneider's formula for the area of a
quadrilateral. Heron's formula can be obtained from Brahmagupta's formula or Bretschneider's formula by setting one of the sides of the quadrilateral to zero. Brahmagupta's formula gives the area of a
cyclic quadrilateral whose sides have lengths as K=\sqrt{(s-a)(s-b)(s-c)(s-d)} where s = \tfrac12(a + b + c + d) is the
semiperimeter. Heron's formula is also a special case of the
formula for the area of a trapezoid or trapezium based only on its sides. Heron's formula is obtained by setting the smaller parallel side to zero. Expressing Heron's formula with a
Cayley–Menger determinant in terms of the squares of the
distances between the three given vertices, A = \frac{1}{4} \sqrt{- \begin{vmatrix} 0 & a^2 & b^2 & 1 \\ a^2 & 0 & c^2 & 1 \\ b^2 & c^2 & 0 & 1 \\ 1 & 1 & 1 & 0 \end{vmatrix} } illustrates its similarity to
Tartaglia's formula for the
volume of a
three-simplex. Another generalization of Heron's formula to pentagons and hexagons inscribed in a circle was discovered by
David P. Robbins.
Degenerate and imaginary triangles If one of three given lengths is equal to the sum of the other two, the three sides determine a
degenerate triangle, a line segment with zero area. In this case, the semiperimeter will equal the longest side, causing Heron's formula to equal zero. If one of three given lengths is greater than the sum of the other two, then they violate the
triangle inequality and do not describe the sides of a Euclidean triangle. In this case, Heron's formula gives an
imaginary result. For example if and , then {{tmath|1=\textstyle A = \tfrac {3\sqrt5}4i }}. This can be interpreted using a triangle in the
complex coordinate plane , where "area" can be a complex-valued quantity, or as a triangle lying in a
pseudo-Euclidean plane with one space-like dimension and one time-like dimension.
Volume of a tetrahedron If are lengths of edges of the tetrahedron (first three form a triangle; opposite to and so on), then \text{volume} = \frac {\sqrt {\,( - a + b + c + d)\,(a - b + c + d)\,(a + b - c + d)\,(a + b + c - d)}} {192\,u\,v\,w} where \begin{align} a &= \sqrt {\vphantom{y}xYZ}, \qquad b = \sqrt {XyZ}, & c &= \sqrt {\vphantom{y}XYz}, \qquad d = \sqrt {\vphantom{X}xyz}, \\[4mu] X &= (-U + v + w)\,(U + v + w), & x &= (U - v + w)\,(U + v - w), \\ Y &= (-V + w + u)\,(V + w + u), & y &= (V - w + u)\,(V + w - u), \\ Z &= (-W + u + v)\,(W + u + v), & z &= (W - u + v)\,(W + u - v). \end{align}
Spherical and hyperbolic geometry L'Huilier's formula relates the area of a triangle in
spherical geometry to its side lengths. For a
spherical triangle with side lengths and , semiperimeter , and area , \tan^2 \frac S 4 = \tan \frac s2 \tan\frac{s-a}2 \tan\frac{s-b}2 \tan\frac{s-c}2 For a triangle in
hyperbolic geometry the analogous formula is \tan^2 \frac S 4 = \tanh \frac s2 \tanh\frac{s-a}2 \tanh\frac{s-b}2 \tanh\frac{s-c}2. ==See also==