Linked Questions

1
vote
2answers
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 ...
0
votes
0answers
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: ...
2
votes
0answers
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, ...
2
votes
0answers
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 ...
1
vote
0answers
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 ...
1
vote
3answers
36 views

Grouping expressions by associative equivalence for a single operation

I would like to group expressions under associative equivalence, but only for a specific operation used in the expression (not for other operations). Say we have two binary operations A and B ...
0
votes
1answer
34 views

Issue with variables/functions in solving equations

I've been posting some questions all around issues with defining and using variables/functions in Mathematica. Based on the answers/comments I got I still cannot make this simple code work... Why is ...

15 30 50 per page
1
44 45 46 47
48