How Heron's formula works
Heron's formula calculates triangle area from the three sides a, b, and c. First compute the semi-perimeter s = (a + b + c) / 2, then the area is sqrt(s * (s-a) * (s-b) * (s-c)).
The formula is attributed to Hero of Alexandria (first century AD) and works for any valid triangle, including obtuse and scalene triangles where the height is not obvious.
s = (a + b + c) / 2
Semi-perimeter.
A = sqrt(s(s-a)(s-b)(s-c))
Area from the semi-perimeter and three sides.