Wolfram Computation Meets Knowledge

HeronFormula

Contributed by: Ed Pegg Jr

Given edge lengths of a triangle return the area.

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