Questions tagged [simplex]

An n-dimensional simplex is a subspace of R^n with codimension 1, therefore n-1 coordinates are enough to represent any point on the simplex. A 2D simplex can be plotted as a ternary plot.

5
votes
1answer
169 views

Split $n$-dimensional prism into simplices

Are there standard geometry or graph functions that allow to, say, construct a $n$-dimensional prism by it's $(n-1)D$ base and height and split it into simplices (without creating new points)? Extra ...
1
vote
2answers
87 views

Test regularity of Simplex

A simplex is regular if its all edges have the same length. How to test in Mathematica whether a Simplex is regular or not, without checking all the edges manually?...
2
votes
1answer
681 views

Plot a trajectory in a simplex [duplicate]

I would like to plot the make-up of a population over time as it changes its composition. For this, I'd like to make a simplex plot, a classic method in some fields - such as this example from a paper ...
2
votes
1answer
331 views

Plotting a manifold within an existing surface

I have a dynamical system $\textbf{x}'=\textbf{f(x)}$ where $x\in \mathbb{R}^4$. However, $x_1 +x_2 +x_3 + x_4 =1$ and $0\leq x_i \leq 1$ for $i = 1,2,3,4$, meaning the system lives on the Tetrahedron....
3
votes
2answers
818 views

region plot in a 2-simplex

I want to plot a 2-dimensional region with constraint $x+y\le N$, i.e., I want to plot a sub-region inside a 2-simplex. As an example: ...
4
votes
2answers
263 views

Manipulate Controller - Simplex

Imagine you have three numbers a, b and c, and using ...
1
vote
1answer
1k views

Plot in a 2-dimensional simplex

I have a row vector as $P=(p_1,p_2,p_3)$ which should be obtained from the following constraints: $a_1p_1 + a_2p_2 + a_3p_3 = b_1p_1 + b_2p_2 + b_3p_3$ ($a_i$'s and $b_i$'s are known) $p_1 + p_2 + ...
45
votes
6answers
6k views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can accept the <...
6
votes
1answer
392 views

Generate regularly spaced points from the surface of simplexes

I need to generate regularly spaced samples (points) from the surface of unit simplexes with 2 or greater vertices or end points. I can generate random samples pretty straightforwardly: ...
12
votes
2answers
1k views

How to plot a barycentric line

I want to plot a barycentric function on an equilateral triangle (ternary plot). For example f1 = {Abs[Sin[x]], Mod[x, 2], Abs[Cos[x]]}; At the moment I evaluate ...