Linked Questions

608 votes
19 answers
161k views

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 ...
20 votes
4 answers
3k views

I have a set of say 100 numbers {1,3,7,11,19,...3971}. All elements are previously determined. I want to check whether ...
Meqdad's user avatar
  • 433
16 votes
3 answers
9k views

As part of a calculation I need to do something like this Evaluate[{aaa, bbb, ccc}[[ index]]] = {1, 2, 3, 4, 5} so if index is ...
BlueMac's user avatar
  • 721
20 votes
5 answers
766 views

I have data that is given as a list of ordered pairs mixed with scalars. The pairs can contain infinite bounds. My goal is to convert the data into an index used in future computations. ...
Andy Ross's user avatar
  • 19.5k
16 votes
4 answers
740 views

I have just noticed that x /. <|x -> 123|> evaluates to 123 In other words, the association seems to behave as a ...
Gustavo Delfino's user avatar
9 votes
6 answers
443 views

In ruby , 1.upto(10).to_a.group_by{|x| x%3} gives {1=>[1, 4, 7, 10], 2=>[2, 5, 8], 0=>[3, 6, 9]} I would like use ...
chyanog's user avatar
  • 16.2k
5 votes
2 answers
385 views

I tried to make a parallel version of MemberQ for use with a large list, but failed miserably in terms of performance. I used Partition to subdivide the list and ParallelMap to perform the MemberQ ...
Giovanni F.'s user avatar
  • 1,961
9 votes
1 answer
420 views

Given that the documentation for FindMinimum uses ReplaceAll for its various examples of what to do with the found solution to ...
Joel Bosveld's user avatar
-1 votes
4 answers
279 views

Suppose we have the following list data = {{1, 2, 3}, {4, 3, 2, 1, 0}, {6, 7, 8}, {-5, -4, -3, -2, -1}, {-2, -3, -4}, {1, 1, 1, 1, 1}} As we can see, ...
Vaggelis_Z's user avatar
  • 8,920
3 votes
3 answers
2k views

I have just started to get used to Mathematica's Map, Apply, and related functions, and I can't figure out how to do maps that require working "one level down". For example, I am currently trying to ...
soandos's user avatar
  • 1,040
3 votes
3 answers
277 views

I have this code: ...
atapaka's user avatar
  • 4,066
6 votes
1 answer
331 views

Dispatch creates hash tables only for lists of length larger than 3. Is there any way to force MMA to create hash tables even for lists of length smaller than 4? ...
Hector's user avatar
  • 6,488