Linked Questions

2 votes
1 answer
334 views

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
478 views

Sorting Eigensystems [duplicate]

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

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
74 views

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
48 views

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
132k views

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
799 views

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
1k views

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
1k views

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
568 views

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
2k views

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
601 views

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
3k views

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
412 views

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
285 views

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