Linked Questions

2 votes
1 answer

Sort rows in a matrix with a vector [duplicate]

Let's suppose I have a matrix: $A=\left[\begin{array}{ccc} a & b & c\\ d & e & f\\ g & h & i \end{array}\right]$ and I want to sort the rows using a sort-vector: $sortVec=\...
henry's user avatar
  • 2,510
1 vote
0 answers

Sorting Eigensystems [duplicate]

SO I have this code: ...
yankeefan11's user avatar
0 votes
1 answer

Filter out eigenvalues in NDEigenfunction [duplicate]

I am going to solve TISE for logarithmic potential in two dimensions. For bound state solution, the energy eigenvalues are to come negative. This is my code: ...
user157588's user avatar
2 votes
1 answer

Confusion in Eigenvalue and eigenfunction distribution using NDEigensystem [duplicate]

I have been using NDEigensystem to solve the Schrodinger equation for different potentials. However, whenever the potential has its minimum in the negative y-axis, ...
user444's user avatar
  • 2,550
1 vote
0 answers

Manipulate arrays [duplicate]

I want to sort the array a = {{{1, 0, 0}, {1, 1, 1}, {0.5, 0.0, 0.5}}, {{-1}, {1}, {-1}}} in the following way: a[[1]] and <...
S. Mu's user avatar
  • 11
550 votes
37 answers

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
14 votes
13 answers

How to group each element with each consecutive elements in one head

Suppose I have the following list: list = {a, b, c, d} I want to generate this result: ...
Basheer Algohi's user avatar
14 votes
4 answers

I have the minimum Y value. I want to find the corresponding X value from the list [duplicate]

I have a very big file and contains data in the format of {x,y}. I got the minimum Y value by using data[[All, 2]] // Min[#] & Now I want to get the X value ...
Sushanta's user avatar
  • 141
13 votes
7 answers

Sort+Union on a list

Probably this is too trivial question for this forum but for some reason I am not getting it on my Mathematica 7 so far. I have a list ...
dbm's user avatar
  • 1,239
6 votes
6 answers

Sort a list of coordinates by frequency from first component of each coordinate

The situation is that I have a List like this: ...
Jonathan Prieto-Cubides's user avatar
4 votes
8 answers

Maximum tuple value

Is there a simple way to make a maximum tuple value (similar to python)? For example, in python max([ (1,2), (1,3), (3,1), (4,0) ]) returns ...
user's user avatar
  • 407
7 votes
2 answers

Finding the two pairs in a list of pairs that minimize and maximize a given function

I need to declare a list of ordered pairs, and with it I need to declare a function of two variables, say x and y, and print ...
bfhg17's user avatar
  • 71
2 votes
1 answer

How do I sort complex numbers?

Okay, so I posted something about sorting, and it was linked as a duplicate to This post However, I am having problems trying to sort a list that contains both real and complex numbers. I put them ...
yankeefan11's user avatar
5 votes
3 answers

Is there a function that compares two lists and take from first the element with the position of largest value at second?

Is there a function in Mathematica that compares two lists and take from first the element with the position of largest value at second: ...
Ask8's user avatar
  • 637
3 votes
2 answers

Exercise using Sort

I have to order the following list according to the sum of the powers of each element of the list, using the function Sort. ...
hrmello's user avatar
  • 117

15 30 50 per page