# Tag Info

### When is ##@@@##& more appropriate than ##@@##&?

It's a beginner's error to put @@@ before @@: ...
• 226k
Accepted

• 42.9k
Accepted

• 139k
Accepted

### How to keep the code compact in the following case?

I'd recommend to leave all the fluff away and to simply write two loops with a single branching to decide which loop to evaluate. Moreover, it might be a good idea to use boolean arithmetic (i.e. <...
Accepted

### How to make a plot over some external figure?

You can use Prolog and Inset to position the image behind the plot, but some calibration is needed to get correct coordinates. ...
• 11.8k

### How can I write this using fewer variables?

With "Map" and "Accumulate" and "Prepend": ...
• 37.4k

### How can I write this using fewer variables?

No variables (well, except for length) ...
• 127k

### How can I subtract and calculate the complement of a pair of sets?

First, do not use capital letters for variables, because capitalized names are used by the system. A set difference, e.g. c-a, is written by: Complement[c, a]. A set union, e.g. of a and b, is written ...
• 37.4k
Accepted

### How can I subtract and calculate the complement of a pair of sets?

In Mathematica, your P and Q can be written as: P = Complement[b, c] ⋃ Complement[c, a ⋂ b]; Q = Complement[b, a] ⋃ Complement[a, b] ⋃ c; To avoid mistakes when I ...
• 19.5k

...
• 14.6k

### How to calculate different combinations of back and dotted perimeter

All the arc lengths are equal to Pi/6. For example, ...
• 52.1k
Accepted

### String to expression does not work properly

The smallest fix would be to change the final _ to ___. I.e. the pattern would look like this: ...
• 15.5k
Accepted

### Dealing with locally defined functions in Module while exporting/importing

You may benefit by using Pure Functions ...
• 35.2k

### How can I replace the locally defined function inside If with its value?

I may not be grokking what you're going for, but maybe this: ...
• 15.5k

Only top scored, non community-wiki answers of a minimum length are eligible