Heron's Formula
From AoPSWiki
(Redirected from Heron's formula)
Heron's Formula (sometimes called Hero's formula) is a formula for finding the area of a triangle given only the three side lengths.
Contents |
Theorem
For any triangle with side lengths
, the area
can be found using the following formula:
where the semi-perimeter
.
Proof
See Also
External Links
In general, it is a good advice not to use Heron's formula in computer programs whenever we can avoid it. For example, whenever vertex coordinates are known, vector product is a much better alternative. Main reasons:
- Computing the square root is much slower than multiplication.
- For triangles with area close to zero Heron's formula computed using floating point variables suffers from precision problems.



![[ABC]=\frac{ab}{2}\sin C](http://alt2.artofproblemsolving.com/Forum/latexrender/pictures/a/a/c/aacd7ac84f1d45e78c03b833f7104bf532cc11a4.gif)


![=\sqrt{\frac{a^2b^2}{4}\left[1-\frac{(a^2+b^2-c^2)^2}{4a^2b^2}\right]}](http://alt2.artofproblemsolving.com/Forum/latexrender/pictures/b/4/2/b425aec65ac614214f14d223a7d65d0f9ba9e951.gif)






