Compute a triangle area from its three side lengths using Heron's formula.
输入三角形三边长 a、b、c,求面积。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Heron's formula | S = √[p(p−a)(p−b)(p−c)] with p = (a+b+c) ÷ 2 | Heron, Metrica, c. AD 60 |
| Numerical stability | Works from side lengths alone (triangle inequality), no height needed | Common computational-geometry choice |
| Triangle inequality | Require a+b>c, a+c>b, b+c>a, else degenerate | Existence condition |
| Qin Jiushao form | S = √[(1/4)(a²c² − ((a²+c²−b²)/2)²)], equivalent to Heron | Qin Jiushao 1247, Shushu Jiuzhang |