Linked Questions

3 votes
1 answer
214 views

why Level does not sort output according to their levels

Consider this example: Level[a + f[x, y^n], {0, Infinity}] (*{a, x, y, n, y^n, f[x, y^n], a + f[x, y^n]}*) Why the output is sorted in this way. why not ...
Basheer Algohi's user avatar
5 votes
1 answer
243 views

Why Cases and Select treat the List differently?

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
4 votes
1 answer
280 views

Levels and slots

I am struggling with levels and #, if I understand this I think I will be able to grasp the entire concept. ...
ALEXANDER's user avatar
  • 1,239
6 votes
2 answers
242 views

Levelspec range with negative levelspec

Documentation states A negative level -n consists of all parts of expr with depth n. However, it is not clear what do level ...
akater's user avatar
  • 1,540
3 votes
2 answers
157 views

What exactly do single brackets represent syntactically?

I'm trying to deepen my understanding of the mathematica language after having messed around with it for a long time. I'm reading the book "mathematica programming Intro". Unfortunately, I don't ...
user56834's user avatar
  • 545
2 votes
1 answer
82 views

Higher functional programming partial substitution

This h[g_, x_] := g[x] h[Sqrt, x^2] works obviously as well as : f[x_]:= x^2 h[f,x] but if ...
cyrille.piatecki's user avatar
1 vote
1 answer
68 views

How to use syntax instead of double for loop

I would like to find the distance between a point list (i.e dalist) and list of centers (i.e framecenters). I used the following ...
Mehdi Ebadi's user avatar
1 vote
1 answer
60 views

Head of level : question about the Apply function

I am not sure to really understand how the function Apply works at level 2 for example. I have read this question and few others and it doesn't help me :Levels: how do they work? Take the following ...
StarBucK's user avatar
  • 2,164
0 votes
0 answers
62 views

Where can I find mathematica documentation about @@@? [duplicate]

For example, to build a rule from 2 lists {a,b,c}, {1,2,3}, I use: ...
Hergé's user avatar
  • 73

15 30 50 per page
1
2