WOLFRAM

Copy to clipboard.
Simplex[{p1,,pk}]

represents the simplex spanned by points pi.

Details and Options

  • Simplex is also known as point, line segment, triangle, tetrahedron, pentachoron, hexateron, etc.
  • Simplex represents all convex combinations of the given points . The region is dimensional when are affinely independent and .
  • Example simplices where rows correspond to embedding dimension:
  • Simplex[n] for integer n is equivalent to Simplex[{{0,,0},{1,0,,0},,{0,,0,1}}], the unit standard simplex in .
  • Simplex can be used as a geometric region and graphics primitive.
  • In graphics, the points pi can be Scaled and Dynamic expressions.
  • Graphics rendering is affected by directives such as FaceForm, EdgeForm, Opacity, and color.

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

A Simplex in 3D:

Out[1]=1

And in 2D:

Out[2]=2

Different styles applied to a simplex:

Out[2]=2

Volume and centroid:

Out[2]=2
Out[3]=3

Scope  (20)Survey of the scope of standard use cases

Graphics  (9)

Specification  (3)

A standard unit Simplex in 3D:

Out[1]=1

A 2D simplex spanning three points:

Out[1]=1

A simplex in dimensions is specified by at most points:

Out[2]=2

Styling  (3)

Different styles applied to a simplex:

Out[2]=2

Color directives specify the face color:

Out[1]=1

FaceForm and EdgeForm can be used to specify the styles of the faces and edges:

Out[1]=1

Coordinates  (3)

Specify coordinates by fractions of the plot range:

Out[1]=1

Specify scaled offsets from the ordinary coordinates:

Out[1]=1

Points can be Dynamic:

Out[1]=1

Regions  (11)

Embedding dimension is the dimension of the space in which the simplex lives:

Out[1]=1
Out[2]=2
Out[3]=3

Geometric dimension is the dimension of the shape itself:

Out[1]=1
Out[2]=2
Out[3]=3

Point membership test:

Out[1]=1
Out[2]=2

Get conditions for point membership:

Out[3]=3

Measure and centroid:

Out[1]=1
Out[2]=2

The measure for a standard simplex in dimension is :

Out[3]=3

Distance from a point:

Out[2]=2

Visualize it:

Out[3]=3

Signed distance from a point:

Out[2]=2
Out[3]=3

Nearest point to the region:

Out[2]=2

Visualize it:

Out[4]=4

A simplex is bounded:

Out[2]=2

Find its range:

Out[3]=3
Out[4]=4

Integrate over a simplex:

Out[1]=1
Out[2]=2

Optimize over a simplex:

Out[1]=1
Out[2]=2

Solve equations constrained by a simplex:

Out[1]=1
Out[2]=2

Applications  (1)Sample problems that can be solved with this function

Define the Kuhn simplex for dimension :

The 2D Kuhn simplex:

Out[2]=2
Out[3]=3

The 3D Kuhn simplex:

Out[4]=4
Out[5]=5

The measure in dimension is :

Out[6]=6

The centroid in dimension is :

Out[7]=7

Properties & Relations  (8)Properties of the function, and connections to other functions

TriangulateMesh can be used to decompose a volume mesh into simplices:

Out[1]=1
Out[2]=2

Use options such as MaxCellMeasure to control the number of simplices:

Out[3]=3

Point is a special case of Simplex:

Out[1]=1
Out[2]=2

Line is a special case of Simplex:

Out[2]=2

Triangle is a special case of Simplex:

Out[2]=2

Tetrahedron is a special case of Simplex:

Out[2]=2

Polygon is a generalization of Simplex in dimension 2:

Out[2]=2

ImplicitRegion can represent any Simplex:

Out[2]=2

Simplex is the set of convex combinations of its vertices:

Out[2]=2

Neat Examples  (1)Surprising or curious use cases

Random collection of simplices:

Out[1]=1
Out[3]=3
Wolfram Research (2014), Simplex, Wolfram Language function, https://reference.wolfram.com/language/ref/Simplex.html.
Copy to clipboard.
Wolfram Research (2014), Simplex, Wolfram Language function, https://reference.wolfram.com/language/ref/Simplex.html.

Text

Wolfram Research (2014), Simplex, Wolfram Language function, https://reference.wolfram.com/language/ref/Simplex.html.

Copy to clipboard.
Wolfram Research (2014), Simplex, Wolfram Language function, https://reference.wolfram.com/language/ref/Simplex.html.

CMS

Wolfram Language. 2014. "Simplex." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Simplex.html.

Copy to clipboard.
Wolfram Language. 2014. "Simplex." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Simplex.html.

APA

Wolfram Language. (2014). Simplex. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Simplex.html

Copy to clipboard.
Wolfram Language. (2014). Simplex. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Simplex.html

BibTeX

@misc{reference.wolfram_2025_simplex, author="Wolfram Research", title="{Simplex}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Simplex.html}", note=[Accessed: 25-March-2025 ]}

Copy to clipboard.
@misc{reference.wolfram_2025_simplex, author="Wolfram Research", title="{Simplex}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Simplex.html}", note=[Accessed: 25-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_simplex, organization={Wolfram Research}, title={Simplex}, year={2014}, url={https://reference.wolfram.com/language/ref/Simplex.html}, note=[Accessed: 25-March-2025 ]}

Copy to clipboard.
@online{reference.wolfram_2025_simplex, organization={Wolfram Research}, title={Simplex}, year={2014}, url={https://reference.wolfram.com/language/ref/Simplex.html}, note=[Accessed: 25-March-2025 ]}