Skip to main content

# Questions tagged [order]

The tag has no usage guidance.

62 questions
Filter by
Sorted by
Tagged with
8 votes
5 answers
295 views

### Ordering with repeats

A quick question on list ordering, how can I easily get the ordering of the list, so that, for {0, Sqrt[3], 2 Sqrt[3], Sqrt[3], 3, 2 Sqrt[3]} I get ...
• 4,863
1 vote
1 answer
56 views

### Force certain operations to evaluate last

I have an integral of a term which first needs some massaging, e.g. (EDIT: Made the integral in such a way that it cannot be pulled out) ...
1 vote
0 answers
61 views

• 923
4 votes
1 answer
154 views

### Concise way to do lexicographic ordering

I want to order a bunch of number sequences lexicographically. Did this with ...
• 2,066
2 votes
1 answer
32 views

### ordered set inclusion 2

Slightly change the previous question, ordered set inclusion, Now, consider $A=\{2,3\}$ and $B=\{2,3,4,5\}, C=\{5,2,4,3\}$, Now I want to make element $\{2,3\}$ is in $B$ as well as $C$, what can be ...
• 923
2 votes
1 answer
49 views

### ordered set inclusion

Suppose I have a ordered set $A=\{2,3\}$ and $B=\{2,3,4\}$ and $C=\{2,4,3\}$. Is there any mathematica command whether $A\subset B$ gives true(or 1) but $A$ which is not a subset of $C$ gives false(or ...
• 923
2 votes
2 answers
140 views

### How to reorder {x,y} list data and plot as ListLinePlot

How to re-arrange data to find line plot in order (I tried with given below code). ...
• 1,065
1 vote
0 answers
30 views

### Consistency of sample quantile to population quantile for discrete variables [closed]

Can I know if the sample quantile converges to the population quantile in probability for discrete variables? If we use Hoeffding (1963)'s results, is this true?
• 39
1 vote
4 answers
1k views

### How would we extract elements of a list greater than a certain value? [closed]

Say we have a list {35,210,67,950,32,365} how would we extract all the elements greater than 100 from this list (using a function)? The desired output would be ...
1 vote
4 answers
126 views

### Sorting a function

So I have a function f[x : {{_, _} ...}] := f /@ x; f[a_,b_]=:a+b. I can input f[{1,2},{2,0},{3,4}] and get ...
2 votes
0 answers
52 views

### Map Inverse Ordering on Matrix [duplicate]

I have an matrix (symmetric, but any $n \times n$ will do) A = \begin{bmatrix} 0 & 4.5 & 6 & 5.5 \\ 4.5 & 0 & 4 & 3 \\ 6 & 4 & 0 & 5 \\ 5.5 & 3 & 5 &...
• 63
14 votes
3 answers
416 views

### Ordering Problem With VoronoiMesh

Imagine I want to model 2D cells moving in a tissue. Consider, as an example, Lloyd's relaxation algorithm. Using VoronoiMesh I'm able to mimic some cell movement. ...
• 4,863
8 votes
2 answers
2k views

### Best way to insert element into an ordered list at the correct position?

Suppose I have an ordered list orderedList and I want to write some code that will involve regularly inserting new elements into ...
• 960
2 votes
1 answer
71 views

### Does Mathematica have an order relationship for lists, or a general ordering relation?

{1, 2} < {3, 4} doesn't seem to work, but Sort[{{3, 4}, {1, 2}}] yields {{1, 2}, {3, 4}}. ...
• 872
7 votes
1 answer
183 views

### Ascending and descending in the context of the order of operations on Datasets

I did not understand the concepts ascending and descending in the context of the order of operations on Datasets. It is listed in the documentation, on Dataset's page and yet I did not understand. ...
• 257
8 votes
4 answers
1k views

### SortBy first element then second element, and so on?

SortBy can sort list by first element easily like so: SortBy[{{1, 6}, {1, 2, 8}, {2}}, First] and the result is: {{1, 6}, {...
• 599
2 votes
1 answer
113 views

• 21
1 vote
1 answer
898 views

### Variable order in output

I have two questions about editing my output in Mathematica. I want the variables to be to the right of the fractions with the parameters. Update ...
4 votes
0 answers
121 views

### How do I reassign the ordering of symbols in a polynomial expression?

I have a big polynomial expression, like this: ...
1 vote
3 answers
894 views

### Matching the order of a master list of lists from a random list of lists

Using Mathematica 9, I have 2 lists of lists one master with dimensions {300, 6}. The second is some random order but has the same first ...
• 4,528