# Questions tagged [order]

The tag has no usage guidance.

59 questions
Filter by
Sorted by
Tagged with
603 views

### Dropping disordered numbers in a list

I have a list of numbers like l1 = (1,2,3,4,8) and clearly, l1 is in order (next number is greater than previous number). Well, ...
1 vote
116 views

### Is it possible to prevent two functions from commuting?

I have an expression of the following type: x f[a] g[b] where x is a number but f[a] and <...
88 views

### How is the output (a list) of the "Eigenvalues" function ordered?

The documentation of the function Eigenvalues says that the Eigenvalues are sorted in order of decreasing absolute values. But what is if the absolute values are the same. For example when two ...
355 views

### How to replace the element in list of list by its ordering index

I have a list of list: res={{9, 1, 5}, {3, 6, 12}} I want to change it to res={{5, 1, 3}, {2, 4, 6}} by following their ordering ...
360 views

### Check ordered subset in list

I need to find a function that checks if a list is contained in a larger list RESPECTING the order of the smaller one. For example check[{a,b,c},{a,d,b,c}] would ...
220 views

### Finding relative ordering of two lists

Suppose you have two lists A and B which are related by a permutation, and have no repeated elements. Is there a simple and ...
80 views

### How to improve the efficiency of NIntegrate on complicated functions?

When solving a problem by Matlab and Mathematica both, I find the speed of NIntegrate are far less than dblquad when calling ...
1 vote
83 views

### KSetPartitions function with fixed points

I'm trying to develop a function that computes some numerators for scattering amplitudes and I need to generate a collection of tree diagrams that contain a set of particles (effectively numbers) <...
83 views

### Visualizing order of operations

TreeForm[HoldForm[ (9-2^2+10 8)/9]] produces this: Is there a way to use Divide instead of ...
105 views

### Tuples which treats re-ordering as equivalent [duplicate]

I would like to define a new function myTuples, that behaves just like Tuples, except that it treats, as with ...
150 views

### Re-sorting higher-order ordinary differential equations

I have some higher-order ordinary differential equations. Firstly, I want to collect the terms with common factors together. Besides, I want to re-sort the ODE with the highest order term first. How ...
221 views

### How to order the coordinates generated by ToBoundaryMesh counterclockwise?

The following code works for polygons. A square 4x4 is tried here: ...
88 views

### Double Sum, taking a constant out of the first sum gives a different result

I have a code with the following double sum: Sum[Sum[(-1-k+f[k]) (-l+n+f[l]), {l,k+1,n}], {k,1,n}] /. f[r_] -> If[r == 1, n, 0] With that, I get: I wanted to ...
126 views

### reorder 2-d list according to the second value of each element

I have a nested list with n row and 2 column, its values are numbers, Can I change the order of elements according to the second value?? so every element have in its second value the same value in the ...
1 vote
191 views

### Find Order of a Differential Equation (ODE or PDE)

In Mathematica, I need a code in order to find the order of ODEs and PDEs. Here are some examples using different notations: For fifth-order ODE: ...
99 views

### How to get neighbor lists in the same order/orientation from a periodic IGTriangularLattice[] graph?

Using IGraphM, I want to get the VertexComponent[] neighbors around all nodes, in a periodic IGTriangularLattice[] graph. To do ...
1 vote
92 views

### Rearrange a matrix with new Table Headings-List

I have used a procedure to rearrange my data in a more appropriate way for data analysis such that more similar elements lie next to each other and dissimilar ones far apart. Let's say I have a 5x5 ...
1 vote
39 views

### Yet Another Expression Ordering Question (not polynomial but transcendental)

Forcing a particular ordering of terms, i.e. overriding Mathematica's, is a recurrent issue, especially for users working within particular domains where there is a particular ordering tradition or ...
1 vote