Wolfram Research

HeronFormula

Contributed by: Ed Pegg Jr

Source Notebook

Compute the area of a triangle from the edge lengths

ResourceFunction["HeronFormula"][{a,b,c}]

gives the area of triangle with edge lengths {a,b,c}.

Examples

Basic Examples

A 3-4-5 right triangle has area 6:

In[1]:=
ResourceFunction["HeronFormula"][{3, 4, 5}]
Out[1]=

A 13-14-15 triangle has area 84:

In[2]:=
ResourceFunction["HeronFormula"][{13, 14, 15}]
Out[2]=

Properties and Relations

Degeneracy is not checked:

In[3]:=
ResourceFunction["HeronFormula"][{3, 4, 7}]
Out[3]=
In[4]:=
ResourceFunction["HeronFormula"][{3, 4, 8}]
Out[4]=

Resource History