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
2 answers
70 views

Integrate of simple equation but is not solving!

I have this simple integral but I don't know why Mathematica can't solve it?! FullSimplify[Integrate[x/(-x^2 + a x + b)^(1/2), {x, Sqrt[b], Sqrt[R^2 + b]},Assumptions -> {a > 0, b > 0}]]
user avatar
  • 105
1 vote
0 answers
59 views

Triangulation of Point Configuration

I was going through the documentation of Mathematica but couldn't find any built-in function that can find all possible triangulations for a given set of points. For example, if I have the following ...
user avatar
  • 1,018
0 votes
1 answer
21 views

Computing possibles values (range) for an (polynomial) expression that takes values from two 2-simplex

Let $(p,q) \in \Delta_2$ and $(k,m) \in \Delta_2$, where $\Delta_2$ is the 2-simplex, that is, $0\leq p\leq 1$, $0\leq q\leq 1$, and $0\leq 1-p-q\leq 1$. Consider the expression ...
user avatar
  • 299
3 votes
2 answers
283 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 ...
user avatar
  • 199
5 votes
1 answer
272 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 ...
user avatar
1 vote
2 answers
111 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?...
user avatar
  • 305
2 votes
1 answer
2k 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 ...
user avatar
  • 169
2 votes
1 answer
599 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....
user avatar
3 votes
2 answers
971 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: ...
user avatar
  • 1,179
4 votes
2 answers
288 views

Manipulate Controller - Simplex

Imagine you have three numbers a, b and c, and using ...
user avatar
  • 1,535
1 vote
1 answer
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 + ...
user avatar
  • 335
53 votes
8 answers
8k 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 <...
user avatar
6 votes
1 answer
584 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: ...
user avatar
  • 13.7k
12 votes
2 answers
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 ...
user avatar
  • 1,977