Debian Codegraph @

reasoning/heron-theorem/README

raw
1 ---------------
2 Heron's theorem
3 ---------------
4
5 For any triangle with side lengths a, b, c > 0 that satisfy the triangle inequalities,
6 let s = (a + b + c)/2 be the semiperimeter; then the area is
7
8 A = √(s (s − a) (s − b) (s − c)).
9
10 The radicand s (s − a) (s − b) (s − c) is nonnegative and equals 0 exactly when the
11 triangle is degenerate (one side equals the sum of the other two). The formula is
12 symmetric in a, b, c and homogeneous of degree 2, so scaling all sides by a factor k
13 scales the area by k^2. An equivalent identity useful for checking is
14
15 16 A^2 = 2 a^2 b^2 + 2 b^2 c^2 + 2 c^2 a^2 − a^4 − b^4 − c^4.
16
17 In the right-triangle case where c^2 = a^2 + b^2, Heron’s formula reduces to the familiar
18
19 A = (1/2) a b.
20