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.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Establish a certain formula for a constrained integration over an ordered subsection of a 3-simplex

Some ten years ago, I convinced myself that the solution to this problem (although, it would seem, not carried out with this specific command then) ...
3
votes
2answers
145 views

Plotting maxima within a simplex

I am trying to draw a particular maximum plot within a simplex. I have functions based on two variables: Write p,q for the two variables where p,q \geq 0 and p + q \leq 1. This defines the simplex ...
5
votes
1answer
188 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
907 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
372 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
879 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
266 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 + ...
46
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
423 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 ...