Linked Questions

3
votes
0answers
98 views

How to visualise Mathematica code and how to become a better coder [closed]

I seem to be using functional coding frequently. However, it does not come naturally and I usually copy from example, and then adapt for my own. How do you recommend I improve as a coder? I would ...
2
votes
0answers
139 views

Mathematica Progression Path from Apprentice to Guru [closed]

There's an excellent set of responses to a question about learning Python on stack overflow. As there seems to be a large number of Mathematica experts here, it seems of value (to me at least) to ask ...
9
votes
3answers
763 views

String matching balanced pairs of braces

I am trying to extract from a string in Mathematica all instances of \newcommand{ABC}{DEF} Where ABC and ...
13
votes
5answers
2k views

Match opening and closing parentheses?

Suppose I have a List of the form: lst={"(", "(", "(", ")", "(", ")", ")", ")"} By running ...
0
votes
1answer
201 views

A problem with set values

The following code is just an example to clearly explain my problem. Assume that : ...
20
votes
1answer
282 views

How to get Cases to wrap results in an arbitrary head?

A number of functions provide for results to be wrapped in an arbitrary head. This is very important in cases where the results should not be evaluated. Take Level...
1
vote
1answer
131 views

How to make the StringExpression not occur in my case?

Why is there a StringExpression in the following code? ...
455
votes
37answers
101k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
7
votes
2answers
406 views

Formatting text through pattern matching

I am trying to format some text based on some patterns. ...
534
votes
19answers
134k views

Where can I find examples of good Mathematica programming practice?

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 ...