Linked Questions

2
votes
1answer
189 views

list manipulation [duplicate]

I have a list like the following: {{1, 3}, {2, 5}, {3, 6}, {2, 4}} I want the final list to be like that : ...
0
votes
0answers
90 views

How to delete duplicated sublist [duplicate]

I have a list like this: ...
526
votes
19answers
130k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
36
votes
4answers
9k views

Sort lists according to the order of another

I have three parallel lists (i.e. the elements in position i of each list are related). I want to sort the first list using the function Sort and make the same ...
10
votes
4answers
5k views

Delete duplicate elements from a list

If a list contains duplicate elements, for example list = {a, 1, 5, 3, 5, x^2, x^2}, how can the duplicate elements be removed? The result would be ...
9
votes
4answers
2k views

Checking for duplicates in sublists

I have a list with contains entries that are length 8 sublists,i.e. L1={{a1,b1,c1,d1,A1,B1,C1,D1},{a2,b2,c2,d2,A2,B2,C2,D2},...} and so on. Now, in my problem two ...
6
votes
6answers
456 views

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

The situation is that I have a List like this: ...
7
votes
2answers
455 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 ...
10
votes
2answers
1k views

DeleteDuplicates[] does not work as expected on floating point values

Here is my simple example, and in this case function DeleteDuplicates does not work as expected. I want to FindRoot of my ...
3
votes
2answers
266 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. ...
30
votes
0answers
524 views

What Mathematica features and idioms have $n^2$ complexity or worse [closed]

Here are a few: AppendTo[data, elem], Sort[data, test], in some cases use of ___ (as ...