Linked Questions

0 votes
0 answers
174 views

Replace[{{x^2, Sqrt[x]}, {x + 1, x - 3}}, f_[x__] -> f, 1] Level 1 of Replace works here as expected with output {List,List} ...
GambitSquared's user avatar
62 votes
9 answers
5k views

I cannot understand how Mathematica manages levels, and so it's always a painful try-and-fail to use Flatten. Can someone please give me a very clear definition? ...
Lorenzo Pistone's user avatar
65 votes
12 answers
112k views

I understand Mathematica can't assign the results of a Solve to the unknowns because there may be more than 1 solution. How can I assign the 4 values of following result to variables? ...
stevenvh's user avatar
  • 7,281
52 votes
2 answers
8k views

I cannot understand the difference between Apply, Scan, and Map. I have tried to play with ...
MOON's user avatar
  • 3,936
17 votes
2 answers
738 views

Is there a simple way in Mathematica to prevent rule reordering? Let me give an example: ...
whackyusername1's user avatar
5 votes
3 answers
2k views

Consider an arbitrary expression expr. This expression may contain arbitrary data, like integers, variables, implicit functions etc. Now, I would like to determine ...
Kagaratsch's user avatar
  • 12.1k
9 votes
5 answers
367 views

I have a list of strings list. I am trying to get rid of some elements that match string pattern patt: ...
amrods's user avatar
  • 667
9 votes
3 answers
721 views

I want to accumulate the second elements in each sublist identified by its first element. ...
Crisp's user avatar
  • 341
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
1 vote
2 answers
474 views

I have a 2D array of complex values and I want to apply a function to every entry of the array, for every timepoint t in a list. I know how to apply my function to one entry for every time t in a list,...
Leo's user avatar
  • 257
4 votes
3 answers
376 views

I am looking for a way for variable partitioning of the data in the form of a "list of lists" for interpolating the imported data from excel. The data looks like: ...
incognito's user avatar
  • 141
1 vote
1 answer
2k views

(This is a far tighter version of a previous question I asked) The problem with Collect is that while Collect[exp, pattern, Simplify] will simplify the coefficients,...
jlperla's user avatar
  • 1,007
4 votes
1 answer
640 views

I have lists of sets of variables, some in nested sub-lists: t = {{1, 2}, {3, 4}, {{5, 6}, {7, 8, 9}}} I need to flatten this list in place but preserve the sets....
Jerry Guern's user avatar
  • 4,672
5 votes
1 answer
281 views

Look at these two examples: In[1]:=Select[f[i], MatchQ[_f]] Out[1]:=f[] In[2]:=Cases[f[i],_f] Out[2]:={} It seems that the Select take $f[i]$ as List, but Cases ...
XiaoaiX's user avatar
  • 397

15 30 50 per page