A blurred image of two triangles with many arbitrary mathematical formulas floating in front of them, and the words โ€œHeron's formulaโ€ in big white letters in the centre.

Heron's formula

Heron's formula is a formula that lets you compute the area of a triangle from the lengths of its three sides \(a\), \(b\), and \(c\):

\[ \sqrt{s \times (s - a) \times (s - b) \times (s - c)}\]

The value \(s\) is the semi-perimeter of the triangle, which is half the perimeter, \(\frac{a + b + c}{2}\).

Proof of Heron's formula

Heron's formula is not too hard to prove. You can prove it algebraically by considering an arbitrary triangle that is subdivided into two smaller right triangles by the height of one side. Then, you determine the side lengths of those two triangles with respect to the original lengths \(a\), \(b\), and \(c\), and you massage the numbers around until the formula shows up.

If you would like a more detailed proof, you can always drop a comment below!

That's it for now! Stay tuned and I'll see you around!

Improve your Python ๐Ÿ fluency and algorithm knowledge ๐ŸŽฏ

Get ready for 12 intense days of problem-solving. The โ€œAlgorithm Mastery Bootcampโ€ starts December 1st and it will feature 24 programming challenges, live analysis sessions, a supportive community of like-minded problem-solvers, and more! Join now and become the Python expert others can rely on.

Previous Post Next Post

Blog Comments powered by Disqus.