58 views

### make a short pattern to match list which contains integers and symbols [duplicate]

I failed to make a short pattern to match {1,b,a,4,g}. my code is as shown below: MatchQ[{1, a, 3, b, c, 5, 6}, t_List /; MemberQ[t, _Integer | _Symbol]] I ...
68 views

### Avoid Recursion in lag and difference operations

I have a panel data situation and I'm interested in taking lags and differences and using Mathematica to simplify the algebra of the result. Currently I'm working with a model like this: ...
64 views

### Textbook/tutorials recommendation for programmer's taste

I'm a programmer and new to Mathematica. Mathematica is still very mysterious to me. I know there are a lot of tutorials of Mathematica which cover contents of different functions, such as Plot, ...
58 views

### Purpose of construct With[{var=myComputation[…]}, var/;True]? [duplicate]

Could someone please give an illustrative example showing the purpose of construct of form With[{var=myComputation[...]}, var/;True]? Also, I wonder what kind of ...
47 views

### Why don't these function definitions work? [closed]

picked up Mathematica (transitioning from Python) a couple of days ago so forgive me for the newbie question. I'm trying to create a function which takes in a list of numbers and returns a list of the ...