# Area/Volume of a Triangle, Tetrahedron, 4-Simplex, 5-Simplex, ....

**URL:** <https://community.wolfram.com/t/area-volume-of-a-triangle-tetrahedron-4-simplex-5-simplex/10989>\
**Category:** Staff Picks\
**Tags:** algebra, discrete-mathematics, geometry, staff-pick\
**Created:** [July 20, 2017, 6:21pm UTC](https://community.wolfram.com/t/area-volume-of-a-triangle-tetrahedron-4-simplex-5-simplex/10989 "2017-07-20T18:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edp](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/edp/32/292_2.png) [@edp](https://community.wolfram.com/u/edp)\
**Post date:** [July 20, 2017, 6:21pm UTC](https://community.wolfram.com/t/area-volume-of-a-triangle-tetrahedron-4-simplex-5-simplex/10989/1 "2017-07-20T18:21:32Z")

</div>

The area of a unit-edge triangle is \sqrt3/4. The volume of a unit-edge tetrahedron is 1/(6\sqrt2). What happens beyond that? At the entry [simplex](http://mathworld.wolfram.com/Simplex.html) we can find the [Cayley-Menger Determinant](http://mathworld.wolfram.com/Cayley-MengerDeterminant.html). Since all those d values will be 1, we end up taking the determinant of the inverse of the [identity matrix](http://mathworld.wolfram.com/IdentityMatrix.html). So we end up with reciprocals of the following for dimensions 2 to 6.

```
1/Table[Sqrt[(-1)^(n + 1)/(2^n (n!)^2) MatrixForm[(1 - IdentityMatrix[n + 2])]], {n, 2, 6}]   

```

 ![matrix.jpg](https://global.discourse-cdn.com/wolfram/original/3X/8/f/8ff48eb2ebcc2ad1a21c7f75a6ae3baac2dcdfca.jpeg)

The bottom (actually top) part winds up being \sqrt{3},\sqrt{4},\sqrt{5},\sqrt{6},\sqrt{7} for dimensions 2 to 6, or dimension+1. The top (actually bottom) part is \sqrt{2^n} n!. The volume of the n-simplex turns out to be {\large \frac{\sqrt{2^n} n!}{\sqrt{n+1}}}.

```
Table[Sqrt[n + 1]/(Sqrt[2]^n n!), {n, 2, 12}]  

```

![volumes.jpg](https://global.discourse-cdn.com/wolfram/original/3X/3/6/36d0b036a3d0119c07588637551e6de56c2f6af8.jpeg)

It seems that the reciprocals of dimensions 7 and 8 seem to be integers. The code below finds the sequence [A155946](http://oeis.org/A155946): 7, 8, 17, 24, 31, 48, 49, 71, 80, 97, … .

```
First /@ Select[Table[{n, (Sqrt[2]^n n!)/Sqrt[n + 1]}, {n, 2, 1000}], IntegerQ[Last[#]] &] 

```

For another check, (16) at [Triangle Area](http://mathworld.wolfram.com/TriangleArea.html) and (1) at [Tetrahedron](http://mathworld.wolfram.com/Tetrahedron.html) suggests a sequence of matrices that appends 1 to each coordinate and takes the determinant. If all but one of the coordinates is some permutation of \left(0,0,0, ..., \frac{1}{\sqrt{2}} \right), those n-1 edges will all be distance 1 from each other. For the last coordinate point, we can find a point \left( a,a,a, ..., a \right) at distance 1 from the other points.

```
FullSimplify[(a /. Solve[Sqrt[(n - 1) a^2 + (a - 1/Sqrt[2])^2] == 1, a]) ]  

```

That gives us a values of \frac{1-\sqrt{n+1}}{n\sqrt{2}} or \frac{1+ \sqrt{n+1}}{n\sqrt{2}} . For dimension 4, the former value is \frac{1-\sqrt{5}}{4 \sqrt{2}} = \frac{\sqrt{3-\sqrt{5}}}{-4} = \frac{1-\phi }{\sqrt8}, where \phi is the [golden ratio](http://mathworld.wolfram.com/GoldenRatio.html). That leads to the following matrix which happens to give the predicted volume.

{\small V = \frac{\sqrt5 }{96} = \frac{1}{4!} \left| \begin{matrix} 0 & 0 & 0 & \frac{1}{\sqrt{2}} & 1 \\\\ 0 & 0 & \frac{1}{\sqrt{2}} & 0 & 1 \\\\ 0 & \frac{1}{\sqrt{2}} & 0 & 0 & 1 \\\\ \frac{1}{\sqrt{2}} & 0 & 0 & 0 & 1 \\\\ \frac{1-\phi }{\sqrt8} & \frac{1-\phi }{\sqrt8} & \frac{1-\phi }{\sqrt8} & \frac{1-\phi }{\sqrt8} & 1 \\\\ \end{matrix} \right| }

The square, cube, hypercube and so on are easier to calculate.

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [August 4, 2017, 11:28am UTC](https://community.wolfram.com/t/area-volume-of-a-triangle-tetrahedron-4-simplex-5-simplex/10989/2 "2017-08-04T11:28:50Z")

</div>

![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)

- Congratulations! This post is now a [Staff Pick](http://community.wolfram.com/content?curTag=staff+picks) as distinguished on [your profile](http://community.wolfram.com/web/edp)! Thank you, keep it coming!

---

<div class="post-metadata">

**Author:** ![mohamadimajed](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mohamadimajed](https://community.wolfram.com/u/mohamadimajed)\
**Post date:** [July 19, 2019, 9:37am UTC](https://community.wolfram.com/t/area-volume-of-a-triangle-tetrahedron-4-simplex-5-simplex/10989/3 "2019-07-19T09:37:58Z")

</div>

Thank you for this post!

I would like to compute the area of the probability simplex. The difference between the probability simplex and the simplex studied in this post is that the former has different side length. Is it possible to change these formula for such simplicies?

Any help is highly appreciated!
